#031C4E#031C4E

#031C4E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.098 H 261.4°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#031C4E
RGBrgb(3, 28, 78)
HSLhsl(220, 93%, 16%)
HSVhsv(220, 96%, 31%)
CMYKcmyk(96.2%, 64.1%, 0%, 69.4%)
CIE-LABlab(11.96, 13.45, -33.35)
CIE-LCHlch(11.96, 35.96, 291.97°)
OKLaboklab(24.57% -0.0146 -0.0965)
OKLCHoklch(24.57% 0.098 261.4)
XYZxyz(1.8275, 1.3997, 7.3801)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031C4E #4E3503
analogous
#03414E #031C4E #0F034E
triadic
#031C4E #4E031C #1C4E03
tetradic
#031C4E #4E0341 #4E3503 #034E0F
square
#031C4E #4E0341 #4E3503 #034E0F
split-complementary
#031C4E #4E0F03 #414E03
monochromatic
#010B1D #010B1D #031C4E #053189 #0846C4

Accessibility & contrast

On white

16.41
#031C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#031C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031C4E
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031C4E#FFFFFF#000000##FFFFFF
##031C4E1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #031c4e;
/* rgb */ color: rgb(3, 28, 78);
/* oklch */ color: oklch(24.6% 0.098 261.4);
Tailwind
colors: {
  custom: {
    50: '#545780',
    500: '#031c4e',
    950: '#000000',
  },
}
SCSS
$custom: #031c4e;
$custom-light: #545780;
$custom-dark: #000000;
JSON
{
  "hex": "#031c4e",
  "rgb": {
    "r": 3,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 220,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24574,
    "c": 0.09761,
    "h": 261.4
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#031C4E
secondary
#8E691E
accent
#B829FF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #031C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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