#31336B#31336B

#31336B is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.095 H 278.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#31336B
RGBrgb(49, 51, 107)
HSLhsl(238, 37%, 31%)
HSVhsv(238, 54%, 42%)
CMYKcmyk(54.2%, 52.3%, 0%, 58%)
CIE-LABlab(23.94, 16.47, -33.10)
CIE-LCHlch(23.94, 36.97, 296.46°)
OKLaboklab(35.08% 0.0145 -0.0943)
OKLCHoklch(35.08% 0.095 278.7)
XYZxyz(5.1035, 4.0819, 14.4260)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31336B #6B6931
analogous
#31506B #31336B #4C316B
triadic
#31336B #6B3133 #336B31
tetradic
#31336B #6B3150 #6B6931 #316B4C
square
#31336B #6B3150 #6B6931 #316B4C
split-complementary
#31336B #6B4C31 #506B31
monochromatic
#0B0B17 #1E1F41 #31336B #444795 #6063B6

Accessibility & contrast

On white

11.56
#31336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31336B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31336B#FFFFFF#000000##FFFFFF
##31336B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#193F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31336b;
/* rgb */ color: rgb(49, 51, 107);
/* oklch */ color: oklch(35.1% 0.095 278.7);
Tailwind
colors: {
  custom: {
    50: '#6e6a96',
    500: '#31336b',
    950: '#000000',
  },
}
SCSS
$custom: #31336b;
$custom-light: #6e6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#31336b",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 237.931,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35075,
    "c": 0.09541,
    "h": 278.7
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#31336B
secondary
#9C9A5C
accent
#C95BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31336B

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

Preview Lab → · Contrast checker → · Palette generator →

#31336B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva