#031B4E#031B4E

#031B4E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.3% C 0.099 H 261.9°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#031B4E
RGBrgb(3, 27, 78)
HSLhsl(221, 93%, 16%)
HSVhsv(221, 96%, 31%)
CMYKcmyk(96.2%, 65.4%, 0%, 69.4%)
CIE-LABlab(11.64, 14.23, -33.86)
CIE-LCHlch(11.64, 36.73, 292.80°)
OKLaboklab(24.34% -0.014 -0.098)
OKLCHoklch(24.34% 0.099 261.9)
XYZxyz(1.8041, 1.3530, 7.3723)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B4E #4E3603
analogous
#03404E #031B4E #10034E
triadic
#031B4E #4E031B #1B4E03
tetradic
#031B4E #4E0340 #4E3603 #034E10
square
#031B4E #4E0340 #4E3603 #034E10
split-complementary
#031B4E #4E1003 #404E03
monochromatic
#010A1D #010A1D #031B4E #052F89 #0844C4

Accessibility & contrast

On white

16.53
#031B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#031B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031B4E
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B4E#FFFFFF#000000##FFFFFF
##031B4E1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #031b4e;
/* rgb */ color: rgb(3, 27, 78);
/* oklch */ color: oklch(24.3% 0.099 261.9);
Tailwind
colors: {
  custom: {
    50: '#555680',
    500: '#031b4e',
    950: '#000000',
  },
}
SCSS
$custom: #031b4e;
$custom-light: #555680;
$custom-dark: #000000;
JSON
{
  "hex": "#031b4e",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 220.8,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24338,
    "c": 0.09902,
    "h": 261.9
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#031B4E
secondary
#8E6B1E
accent
#BA29FF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #031B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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