#031838#031838

#031838 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.4% C 0.069 H 257.8°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#031838
RGBrgb(3, 24, 56)
HSLhsl(216, 90%, 12%)
HSVhsv(216, 95%, 22%)
CMYKcmyk(94.6%, 57.1%, 0%, 78%)
CIE-LABlab(8.64, 6.14, -23.27)
CIE-LCHlch(8.64, 24.07, 284.77°)
OKLaboklab(21.43% -0.0145 -0.067)
OKLCHoklch(21.43% 0.069 257.8)
XYZxyz(1.0777, 0.9580, 3.8687)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031838 #382303
analogous
#033338 #031838 #080338
triadic
#031838 #380318 #183803
tetradic
#031838 #380333 #382303 #033808
square
#031838 #380333 #382303 #033808
split-complementary
#031838 #380803 #333803
monochromatic
#020C1D #020C1D #031838 #063172 #094AAC

Accessibility & contrast

On white

17.62
#031838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#031838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031838
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031838#FFFFFF#000000##FFFFFF
##0318381.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B39
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #031838;
/* rgb */ color: rgb(3, 24, 56);
/* oklch */ color: oklch(21.4% 0.069 257.8);
Tailwind
colors: {
  custom: {
    50: '#4d546f',
    500: '#031838',
    950: '#000000',
  },
}
SCSS
$custom: #031838;
$custom-light: #4d546f;
$custom-dark: #000000;
JSON
{
  "hex": "#031838",
  "rgb": {
    "r": 3,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 216.226,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21426,
    "c": 0.06854,
    "h": 257.8
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#031838
secondary
#7B551C
accent
#AA29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031838

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

Preview Lab → · Contrast checker → · Palette generator →

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