#31367F#31367F

#31367F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.122 H 275.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#31367F
RGBrgb(49, 54, 127)
HSLhsl(236, 44%, 35%)
HSVhsv(236, 61%, 50%)
CMYKcmyk(61.4%, 57.5%, 0%, 50.2%)
CIE-LABlab(26.22, 21.57, -42.14)
CIE-LCHlch(26.22, 47.34, 297.11°)
OKLaboklab(37.25% 0.0124 -0.1209)
OKLCHoklch(37.25% 0.122 275.8)
XYZxyz(6.4153, 4.8231, 20.6674)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367F #7F7A31
analogous
#315D7F #31367F #53317F
triadic
#31367F #7F3136 #367F31
tetradic
#31367F #7F315D #7F7A31 #317F53
square
#31367F #7F315D #7F7A31 #317F53
split-complementary
#31367F #7F5331 #5D7F31
monochromatic
#0F1027 #202353 #31367F #4249AB #666CC4

Accessibility & contrast

On white

10.69
#31367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#31367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31367F
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367F#FFFFFF#000000##FFFFFF
##31367F1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31367f;
/* rgb */ color: rgb(49, 54, 127);
/* oklch */ color: oklch(37.3% 0.122 275.8);
Tailwind
colors: {
  custom: {
    50: '#716da5',
    500: '#31367f',
    950: '#000000',
  },
}
SCSS
$custom: #31367f;
$custom-light: #716da5;
$custom-dark: #000000;
JSON
{
  "hex": "#31367f",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 236.154,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37252,
    "c": 0.12151,
    "h": 275.8
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#31367F
secondary
#ABA760
accent
#CC54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367F

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

Preview Lab → · Contrast checker → · Palette generator →

#31367F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva