#031A4E#031A4E

#031A4E is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.100 H 262.3°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#031A4E
RGBrgb(3, 26, 78)
HSLhsl(222, 93%, 16%)
HSVhsv(222, 96%, 31%)
CMYKcmyk(96.2%, 66.7%, 0%, 69.4%)
CIE-LABlab(11.33, 15.01, -34.37)
CIE-LCHlch(11.33, 37.50, 293.60°)
OKLaboklab(24.11% -0.0134 -0.0995)
OKLCHoklch(24.11% 0.1 262.3)
XYZxyz(1.7816, 1.3080, 7.3648)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031A4E #4E3703
analogous
#033F4E #031A4E #11034E
triadic
#031A4E #4E031A #1A4E03
tetradic
#031A4E #4E033F #4E3703 #034E11
square
#031A4E #4E033F #4E3703 #034E11
split-complementary
#031A4E #4E1103 #3F4E03
monochromatic
#010A1D #010A1D #031A4E #052E89 #0841C4

Accessibility & contrast

On white

16.65
#031A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#031A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031A4E
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031A4E#FFFFFF#000000##FFFFFF
##031A4E1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #031a4e;
/* rgb */ color: rgb(3, 26, 78);
/* oklch */ color: oklch(24.1% 0.100 262.3);
Tailwind
colors: {
  custom: {
    50: '#555580',
    500: '#031a4e',
    950: '#000000',
  },
}
SCSS
$custom: #031a4e;
$custom-light: #555580;
$custom-dark: #000000;
JSON
{
  "hex": "#031a4e",
  "rgb": {
    "r": 3,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 221.6,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24106,
    "c": 0.10044,
    "h": 262.3
  },
  "luminance": 0.01308
}

Semantic roles & 50–950 ramp

primary
#031A4E
secondary
#8E6C1E
accent
#BD29FF
background
#F5F4F7
surface
#E9E8EE
border
#C5C4C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #031A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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