#031839#031839

#031839 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.070 H 258.3°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#031839
RGBrgb(3, 24, 57)
HSLhsl(217, 90%, 12%)
HSVhsv(217, 95%, 22%)
CMYKcmyk(94.7%, 57.9%, 0%, 77.6%)
CIE-LABlab(8.72, 6.62, -23.86)
CIE-LCHlch(8.72, 24.76, 285.52°)
OKLaboklab(21.52% -0.0143 -0.0687)
OKLCHoklch(21.52% 0.07 258.3)
XYZxyz(1.1024, 0.9679, 3.9988)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031839 #392403
analogous
#033339 #031839 #090339
triadic
#031839 #390318 #183903
tetradic
#031839 #390333 #392403 #033909
square
#031839 #390333 #392403 #033909
split-complementary
#031839 #390903 #333903
monochromatic
#020C1D #020C1D #031839 #063073 #0949AD

Accessibility & contrast

On white

17.59
#031839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031839
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031839#FFFFFF#000000##FFFFFF
##0318391.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #031839;
/* rgb */ color: rgb(3, 24, 57);
/* oklch */ color: oklch(21.5% 0.070 258.3);
Tailwind
colors: {
  custom: {
    50: '#4e5470',
    500: '#031839',
    950: '#000000',
  },
}
SCSS
$custom: #031839;
$custom-light: #4e5470;
$custom-dark: #000000;
JSON
{
  "hex": "#031839",
  "rgb": {
    "r": 3,
    "g": 24,
    "b": 57
  },
  "hsl": {
    "h": 216.667,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21518,
    "c": 0.07019,
    "h": 258.3
  },
  "luminance": 0.00968
}

Semantic roles & 50–950 ramp

primary
#031839
secondary
#7C571C
accent
#AC29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031839

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

Preview Lab → · Contrast checker → · Palette generator →

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