#031337#031337

#031337 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.0% C 0.074 H 261.9°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#031337
RGBrgb(3, 19, 55)
HSLhsl(222, 90%, 11%)
HSVhsv(222, 95%, 22%)
CMYKcmyk(94.5%, 65.5%, 0%, 78.4%)
CIE-LABlab(6.87, 9.49, -25.40)
CIE-LCHlch(6.87, 27.12, 290.48°)
OKLaboklab(20.01% -0.0105 -0.0737)
OKLCHoklch(20.01% 0.074 261.9)
XYZxyz(0.9598, 0.7608, 3.7100)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031337 #372703
analogous
#032D37 #031337 #0D0337
triadic
#031337 #370313 #133703
tetradic
#031337 #37032D #372703 #03370D
square
#031337 #37032D #372703 #03370D
split-complementary
#031337 #370D03 #2D3703
monochromatic
#020A1D #020A1D #031337 #062771 #093BAB

Accessibility & contrast

On white

18.23
#031337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#031337 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031337
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031337#FFFFFF#000000##FFFFFF
##0313371.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031337;
/* rgb */ color: rgb(3, 19, 55);
/* oklch */ color: oklch(20.0% 0.074 261.9);
Tailwind
colors: {
  custom: {
    50: '#4d506e',
    500: '#031337',
    950: '#000000',
  },
}
SCSS
$custom: #031337;
$custom-light: #4d506e;
$custom-dark: #000000;
JSON
{
  "hex": "#031337",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 55
  },
  "hsl": {
    "h": 221.538,
    "s": 89.655,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20008,
    "c": 0.07443,
    "h": 261.9
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#031337
secondary
#7A5D1C
accent
#BD29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031337

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

Preview Lab → · Contrast checker → · Palette generator →

#031337 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva