#031840#031840

#031840 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.082 H 260.6°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#031840
RGBrgb(3, 24, 64)
HSLhsl(219, 91%, 13%)
HSVhsv(219, 95%, 25%)
CMYKcmyk(95.3%, 62.5%, 0%, 74.9%)
CIE-LABlab(9.34, 10.02, -27.85)
CIE-LCHlch(9.34, 29.59, 289.78°)
OKLaboklab(22.19% -0.0132 -0.0804)
OKLCHoklch(22.19% 0.082 260.6)
XYZxyz(1.2893, 1.0426, 4.9828)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031840 #402B03
analogous
#033640 #031840 #0C0340
triadic
#031840 #400318 #184003
tetradic
#031840 #400336 #402B03 #03400C
square
#031840 #400336 #402B03 #03400C
split-complementary
#031840 #400C03 #364003
monochromatic
#010B1D #010B1D #031840 #062E7A #0844B5

Accessibility & contrast

On white

17.38
#031840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#031840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031840
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031840#FFFFFF#000000##FFFFFF
##0318401.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031840;
/* rgb */ color: rgb(3, 24, 64);
/* oklch */ color: oklch(22.2% 0.082 260.6);
Tailwind
colors: {
  custom: {
    50: '#505475',
    500: '#031840',
    950: '#000000',
  },
}
SCSS
$custom: #031840;
$custom-light: #505475;
$custom-dark: #000000;
JSON
{
  "hex": "#031840",
  "rgb": {
    "r": 3,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 219.344,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22188,
    "c": 0.08153,
    "h": 260.6
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#031840
secondary
#825F1D
accent
#B529FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #031840

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

Preview Lab → · Contrast checker → · Palette generator →

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