#313AA1#313AA1

#313AA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.164 H 272.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#313AA1
RGBrgb(49, 58, 161)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 70%, 63%)
CMYKcmyk(69.6%, 64%, 0%, 36.9%)
CIE-LABlab(30.04, 31.22, -56.88)
CIE-LCHlch(30.04, 64.89, 298.76°)
OKLaboklab(40.94% 0.0082 -0.1642)
OKLCHoklch(40.94% 0.164 272.9)
XYZxyz(9.2105, 6.2514, 34.4326)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA1 #A19831
analogous
#3172A1 #313AA1 #6031A1
triadic
#313AA1 #A1313A #3AA131
tetradic
#313AA1 #A13172 #A19831 #31A160
square
#313AA1 #A13172 #A19831 #31A160
split-complementary
#313AA1 #A16031 #72A131
monochromatic
#141843 #232972 #313AA1 #4852C7 #777ED6

Accessibility & contrast

On white

9.33
#313AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#313AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA1
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA1#FFFFFF#000000##FFFFFF
##313AA11.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313aa1;
/* rgb */ color: rgb(49, 58, 161);
/* oklch */ color: oklch(40.9% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#7870be',
    500: '#313aa1',
    950: '#000000',
  },
}
SCSS
$custom: #313aa1;
$custom-light: #7870be;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa1",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 235.179,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40943,
    "c": 0.16437,
    "h": 272.9
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#313AA1
secondary
#BEB870
accent
#D14BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313AA1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#313AA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva