#031638#031638

#031638 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.9% C 0.072 H 259.7°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#031638
RGBrgb(3, 22, 56)
HSLhsl(218, 90%, 12%)
HSVhsv(218, 95%, 22%)
CMYKcmyk(94.6%, 60.7%, 0%, 78%)
CIE-LABlab(7.94, 7.76, -24.41)
CIE-LCHlch(7.94, 25.61, 287.63°)
OKLaboklab(20.89% -0.0128 -0.0704)
OKLCHoklch(20.89% 0.072 259.7)
XYZxyz(1.0380, 0.8786, 3.8555)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031638 #382503
analogous
#033138 #031638 #0B0338
triadic
#031638 #380316 #163803
tetradic
#031638 #380331 #382503 #03380B
square
#031638 #380331 #382503 #03380B
split-complementary
#031638 #380B03 #313803
monochromatic
#020B1D #020B1D #031638 #062D72 #0944AC

Accessibility & contrast

On white

17.86
#031638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#031638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031638
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031638#FFFFFF#000000##FFFFFF
##0316381.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #031638;
/* rgb */ color: rgb(3, 22, 56);
/* oklch */ color: oklch(20.9% 0.072 259.7);
Tailwind
colors: {
  custom: {
    50: '#4d526f',
    500: '#031638',
    950: '#000000',
  },
}
SCSS
$custom: #031638;
$custom-light: #4d526f;
$custom-dark: #000000;
JSON
{
  "hex": "#031638",
  "rgb": {
    "r": 3,
    "g": 22,
    "b": 56
  },
  "hsl": {
    "h": 218.491,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20889,
    "c": 0.07154,
    "h": 259.7
  },
  "luminance": 0.00879
}

Semantic roles & 50–950 ramp

primary
#031638
secondary
#7B591C
accent
#B229FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031638

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

Preview Lab → · Contrast checker → · Palette generator →

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