#031336#031336

#031336 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 19.9% C 0.073 H 261.6°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#031336
RGBrgb(3, 19, 54)
HSLhsl(221, 89%, 11%)
HSVhsv(221, 94%, 21%)
CMYKcmyk(94.4%, 64.8%, 0%, 78.8%)
CIE-LABlab(6.79, 8.95, -24.82)
CIE-LCHlch(6.79, 26.38, 289.84°)
OKLaboklab(19.91% -0.0106 -0.072)
OKLCHoklch(19.91% 0.073 261.6)
XYZxyz(0.9360, 0.7513, 3.5850)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031336 #362603
analogous
#032C36 #031336 #0C0336
triadic
#031336 #360313 #133603
tetradic
#031336 #36032C #362603 #03360C
square
#031336 #36032C #362603 #03360C
split-complementary
#031336 #360C03 #2C3603
monochromatic
#020A1D #020A1D #031336 #062770 #093CAA

Accessibility & contrast

On white

18.26
#031336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031336
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031336#FFFFFF#000000##FFFFFF
##0313361.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #031336;
/* rgb */ color: rgb(3, 19, 54);
/* oklch */ color: oklch(19.9% 0.073 261.6);
Tailwind
colors: {
  custom: {
    50: '#4d506d',
    500: '#031336',
    950: '#000000',
  },
}
SCSS
$custom: #031336;
$custom-light: #4d506d;
$custom-dark: #000000;
JSON
{
  "hex": "#031336",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 221.176,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19906,
    "c": 0.07278,
    "h": 261.6
  },
  "luminance": 0.00751
}

Semantic roles & 50–950 ramp

primary
#031336
secondary
#795C1C
accent
#BC29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #031336

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

Preview Lab → · Contrast checker → · Palette generator →

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