#313B9B#313B9B

#313B9B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.155 H 272.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#313B9B
RGBrgb(49, 59, 155)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 68%, 61%)
CMYKcmyk(68.4%, 61.9%, 0%, 39.2%)
CIE-LABlab(29.78, 28.40, -53.67)
CIE-LCHlch(29.78, 60.72, 297.89°)
OKLaboklab(40.59% 0.0076 -0.1547)
OKLCHoklch(40.59% 0.155 272.8)
XYZxyz(8.7450, 6.1467, 31.7296)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B9B #9B9131
analogous
#31709B #313B9B #5C319B
triadic
#313B9B #9B313B #3B9B31
tetradic
#313B9B #9B3170 #9B9131 #319B5C
square
#313B9B #9B3170 #9B9131 #319B5C
split-complementary
#313B9B #9B5C31 #709B31
monochromatic
#14183E #22296D #313B9B #4551C4 #737CD3

Accessibility & contrast

On white

9.42
#313B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B9B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B9B#FFFFFF#000000##FFFFFF
##313B9B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313b9b;
/* rgb */ color: rgb(49, 59, 155);
/* oklch */ color: oklch(40.6% 0.155 272.8);
Tailwind
colors: {
  custom: {
    50: '#7771b9',
    500: '#313b9b',
    950: '#000000',
  },
}
SCSS
$custom: #313b9b;
$custom-light: #7771b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313b9b",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 155
  },
  "hsl": {
    "h": 234.34,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.15491,
    "h": 272.8
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#313B9B
secondary
#BBB46D
accent
#CE4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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