#313C9A#313C9A

#313C9A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.152 H 272.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#313C9A
RGBrgb(49, 60, 154)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(68.2%, 61%, 0%, 39.6%)
CIE-LABlab(29.95, 27.38, -52.77)
CIE-LCHlch(29.95, 59.45, 297.42°)
OKLaboklab(40.7% 0.0068 -0.1521)
OKLCHoklch(40.7% 0.152 272.6)
XYZxyz(8.7133, 6.2170, 31.3064)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9A #9A8F31
analogous
#31719A #313C9A #5A319A
triadic
#313C9A #9A313C #3C9A31
tetradic
#313C9A #9A3171 #9A8F31 #319A5A
square
#313C9A #9A3171 #9A8F31 #319A5A
split-complementary
#313C9A #9A5A31 #719A31
monochromatic
#13183D #222A6C #313C9A #4552C4 #737DD2

Accessibility & contrast

On white

9.36
#313C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C9A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C9A#FFFFFF#000000##FFFFFF
##313C9A1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9a;
/* rgb */ color: rgb(49, 60, 154);
/* oklch */ color: oklch(40.7% 0.152 272.6);
Tailwind
colors: {
  custom: {
    50: '#7671b9',
    500: '#313c9a',
    950: '#000000',
  },
}
SCSS
$custom: #313c9a;
$custom-light: #7671b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9a",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 154
  },
  "hsl": {
    "h": 233.714,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.15224,
    "h": 272.6
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#313C9A
secondary
#BAB26C
accent
#CC4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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