#031536#031536

#031536 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.070 H 259.9°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#031536
RGBrgb(3, 21, 54)
HSLhsl(219, 89%, 11%)
HSVhsv(219, 94%, 21%)
CMYKcmyk(94.4%, 61.1%, 0%, 78.8%)
CIE-LABlab(7.42, 7.54, -23.79)
CIE-LCHlch(7.42, 24.95, 287.58°)
OKLaboklab(20.43% -0.0122 -0.0687)
OKLCHoklch(20.43% 0.07 259.9)
XYZxyz(0.9713, 0.8219, 3.5968)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031536 #362403
analogous
#032E36 #031536 #0A0336
triadic
#031536 #360315 #153603
tetradic
#031536 #36032E #362403 #03360A
square
#031536 #36032E #362403 #03360A
split-complementary
#031536 #360A03 #2E3603
monochromatic
#020B1D #020B1D #031536 #062C70 #0942AA

Accessibility & contrast

On white

18.04
#031536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#031536 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031536
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031536#FFFFFF#000000##FFFFFF
##0315361.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021937
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#001D23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #031536;
/* rgb */ color: rgb(3, 21, 54);
/* oklch */ color: oklch(20.4% 0.070 259.9);
Tailwind
colors: {
  custom: {
    50: '#4d516d',
    500: '#031536',
    950: '#000000',
  },
}
SCSS
$custom: #031536;
$custom-light: #4d516d;
$custom-dark: #000000;
JSON
{
  "hex": "#031536",
  "rgb": {
    "r": 3,
    "g": 21,
    "b": 54
  },
  "hsl": {
    "h": 218.824,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20431,
    "c": 0.06974,
    "h": 259.9
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#031536
secondary
#79581C
accent
#B329FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #031536

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

Preview Lab → · Contrast checker → · Palette generator →

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