#031D4E#031D4E

#031D4E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.096 H 260.9°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#031D4E
RGBrgb(3, 29, 78)
HSLhsl(219, 93%, 16%)
HSVhsv(219, 96%, 31%)
CMYKcmyk(96.2%, 62.8%, 0%, 69.4%)
CIE-LABlab(12.27, 12.67, -32.83)
CIE-LCHlch(12.27, 35.19, 291.10°)
OKLaboklab(24.81% -0.0152 -0.095)
OKLCHoklch(24.81% 0.096 260.9)
XYZxyz(1.8516, 1.4479, 7.3881)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031D4E #4E3403
analogous
#03424E #031D4E #0E034E
triadic
#031D4E #4E031D #1D4E03
tetradic
#031D4E #4E0342 #4E3403 #034E0E
square
#031D4E #4E0342 #4E3403 #034E0E
split-complementary
#031D4E #4E0E03 #424E03
monochromatic
#010B1D #010B1D #031D4E #053389 #0849C4

Accessibility & contrast

On white

16.28
#031D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#031D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031D4E
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031D4E#FFFFFF#000000##FFFFFF
##031D4E1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #031d4e;
/* rgb */ color: rgb(3, 29, 78);
/* oklch */ color: oklch(24.8% 0.096 260.9);
Tailwind
colors: {
  custom: {
    50: '#545880',
    500: '#031d4e',
    950: '#000000',
  },
}
SCSS
$custom: #031d4e;
$custom-light: #545880;
$custom-dark: #000000;
JSON
{
  "hex": "#031d4e",
  "rgb": {
    "r": 3,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 219.2,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24813,
    "c": 0.09617,
    "h": 260.9
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#031D4E
secondary
#8E681E
accent
#B529FF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #031D4E

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

Preview Lab → · Contrast checker → · Palette generator →

#031D4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva