#031939#031939

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

Color values

HEX#031939
RGBrgb(3, 25, 57)
HSLhsl(216, 90%, 12%)
HSVhsv(216, 95%, 22%)
CMYKcmyk(94.7%, 56.1%, 0%, 77.6%)
CIE-LABlab(9.07, 5.82, -23.29)
CIE-LCHlch(9.07, 24.00, 284.03°)
OKLaboklab(21.79% -0.0152 -0.067)
OKLCHoklch(21.79% 0.069 257.3)
XYZxyz(1.1234, 1.0099, 4.0058)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031939 #392303
analogous
#033439 #031939 #080339
triadic
#031939 #390319 #193903
tetradic
#031939 #390334 #392303 #033908
square
#031939 #390334 #392303 #033908
split-complementary
#031939 #390803 #343903
monochromatic
#020D1D #020D1D #031939 #063273 #094CAD

Accessibility & contrast

On white

17.47
#031939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#031939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031939
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031939#FFFFFF#000000##FFFFFF
##0319391.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C3A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031939;
/* rgb */ color: rgb(3, 25, 57);
/* oklch */ color: oklch(21.8% 0.069 257.3);
Tailwind
colors: {
  custom: {
    50: '#4e5570',
    500: '#031939',
    950: '#000000',
  },
}
SCSS
$custom: #031939;
$custom-light: #4e5570;
$custom-dark: #000000;
JSON
{
  "hex": "#031939",
  "rgb": {
    "r": 3,
    "g": 25,
    "b": 57
  },
  "hsl": {
    "h": 215.556,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21789,
    "c": 0.06871,
    "h": 257.3
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#031939
secondary
#7C551C
accent
#A829FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031939

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

Preview Lab → · Contrast checker → · Palette generator →

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