#313DA9#313DA9

#313DA9 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.171 H 271.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#313DA9
RGBrgb(49, 61, 169)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 66%)
CMYKcmyk(71%, 63.9%, 0%, 33.7%)
CIE-LABlab(31.47, 32.16, -59.36)
CIE-LCHlch(31.47, 67.51, 298.45°)
OKLaboklab(42.21% 0.0055 -0.1714)
OKLCHoklch(42.21% 0.171 271.8)
XYZxyz(10.0944, 6.8540, 38.3194)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA9 #A99D31
analogous
#3179A9 #313DA9 #6131A9
triadic
#313DA9 #A9313D #3DA931
tetradic
#313DA9 #A93179 #A99D31 #31A961
square
#313DA9 #A93179 #A99D31 #31A961
split-complementary
#313DA9 #A96131 #79A931
monochromatic
#151B4A #232C7A #313DA9 #4C59CB #7C85D9

Accessibility & contrast

On white

8.86
#313DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DA9
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DA9#FFFFFF#000000##FFFFFF
##313DA91.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313da9;
/* rgb */ color: rgb(49, 61, 169);
/* oklch */ color: oklch(42.2% 0.171 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a72c3',
    500: '#313da9',
    950: '#000000',
  },
}
SCSS
$custom: #313da9;
$custom-light: #7a72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313da9",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 169
  },
  "hsl": {
    "h": 234,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.17149,
    "h": 271.8
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#313DA9
secondary
#C1BA74
accent
#CF49DE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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