#313AA9#313AA9

#313AA9 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.175 H 272.5°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#313AA9
RGBrgb(49, 58, 169)
HSLhsl(236, 55%, 43%)
HSVhsv(236, 71%, 66%)
CMYKcmyk(71%, 65.7%, 0%, 33.7%)
CIE-LABlab(30.74, 34.08, -60.55)
CIE-LCHlch(30.74, 69.48, 299.38°)
OKLaboklab(41.68% 0.0077 -0.1749)
OKLCHoklch(41.68% 0.175 272.5)
XYZxyz(9.9387, 6.5427, 38.2675)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA9 #A9A031
analogous
#3176A9 #313AA9 #6431A9
triadic
#313AA9 #A9313A #3AA931
tetradic
#313AA9 #A93176 #A9A031 #31A964
square
#313AA9 #A93176 #A9A031 #31A964
split-complementary
#313AA9 #A96431 #76A931
monochromatic
#15194A #232A7A #313AA9 #4C56CB #7C83D9

Accessibility & contrast

On white

9.10
#313AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#313AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA9
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA9#FFFFFF#000000##FFFFFF
##313AA91.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313aa9;
/* rgb */ color: rgb(49, 58, 169);
/* oklch */ color: oklch(41.7% 0.175 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a70c4',
    500: '#313aa9',
    950: '#000000',
  },
}
SCSS
$custom: #313aa9;
$custom-light: #7a70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa9",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 169
  },
  "hsl": {
    "h": 235.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41676,
    "c": 0.17509,
    "h": 272.5
  },
  "luminance": 0.06544
}

Semantic roles & 50–950 ramp

primary
#313AA9
secondary
#C1BC74
accent
#D349DE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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