#313EA9#313EA9

#313EA9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.170 H 271.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#313EA9
RGBrgb(49, 62, 169)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 66%)
CMYKcmyk(71%, 63.3%, 0%, 33.7%)
CIE-LABlab(31.72, 31.52, -58.95)
CIE-LCHlch(31.72, 66.85, 298.13°)
OKLaboklab(42.39% 0.0048 -0.1702)
OKLCHoklch(42.39% 0.17 271.6)
XYZxyz(10.1483, 6.9618, 38.3374)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA9 #A99C31
analogous
#317AA9 #313EA9 #6031A9
triadic
#313EA9 #A9313E #3EA931
tetradic
#313EA9 #A9317A #A99C31 #31A960
square
#313EA9 #A9317A #A99C31 #31A960
split-complementary
#313EA9 #A96031 #7AA931
monochromatic
#151B4A #232D7A #313EA9 #4C5ACB #7C86D9

Accessibility & contrast

On white

8.78
#313EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA9
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA9#FFFFFF#000000##FFFFFF
##313EA91.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313ea9;
/* rgb */ color: rgb(49, 62, 169);
/* oklch */ color: oklch(42.4% 0.170 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a73c3',
    500: '#313ea9',
    950: '#000000',
  },
}
SCSS
$custom: #313ea9;
$custom-light: #7a73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea9",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 233.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42393,
    "c": 0.17027,
    "h": 271.6
  },
  "luminance": 0.06963
}

Semantic roles & 50–950 ramp

primary
#313EA9
secondary
#C1B974
accent
#CE49DE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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