#313F9B#313F9B

#313F9B is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.150 H 271.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#313F9B
RGBrgb(49, 63, 155)
HSLhsl(232, 52%, 40%)
HSVhsv(232, 68%, 61%)
CMYKcmyk(68.4%, 59.4%, 0%, 39.2%)
CIE-LABlab(30.82, 25.75, -51.98)
CIE-LCHlch(30.82, 58.01, 296.36°)
OKLaboklab(41.36% 0.0043 -0.1497)
OKLCHoklch(41.36% 0.15 271.6)
XYZxyz(8.9585, 6.5737, 31.8007)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F9B #9B8D31
analogous
#31749B #313F9B #58319B
triadic
#313F9B #9B313F #3F9B31
tetradic
#313F9B #9B3174 #9B8D31 #319B58
square
#313F9B #9B3174 #9B8D31 #319B58
split-complementary
#313F9B #9B5831 #749B31
monochromatic
#14193E #222C6D #313F9B #4556C4 #7380D3

Accessibility & contrast

On white

9.07
#313F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F9B
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F9B#FFFFFF#000000##FFFFFF
##313F9B1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313f9b;
/* rgb */ color: rgb(49, 63, 155);
/* oklch */ color: oklch(41.4% 0.150 271.6);
Tailwind
colors: {
  custom: {
    50: '#7673b9',
    500: '#313f9b',
    950: '#000000',
  },
}
SCSS
$custom: #313f9b;
$custom-light: #7673b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313f9b",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 232.075,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41363,
    "c": 0.14978,
    "h": 271.6
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#313F9B
secondary
#BBB16D
accent
#C94CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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