#031331#031331

#031331 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.064 H 259.9°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#031331
RGBrgb(3, 19, 49)
HSLhsl(219, 88%, 10%)
HSVhsv(219, 94%, 19%)
CMYKcmyk(93.9%, 61.2%, 0%, 80.8%)
CIE-LABlab(6.38, 6.26, -21.80)
CIE-LCHlch(6.38, 22.68, 286.02°)
OKLaboklab(19.41% -0.0113 -0.0634)
OKLCHoklch(19.41% 0.064 259.9)
XYZxyz(0.8246, 0.7068, 2.9981)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031331 #312103
analogous
#032A31 #031331 #0A0331
triadic
#031331 #310313 #133103
tetradic
#031331 #31032A #312103 #03310A
square
#031331 #31032A #312103 #03310A
split-complementary
#031331 #310A03 #2A3103
monochromatic
#020B1D #020B1D #031331 #07296B #0A40A4

Accessibility & contrast

On white

18.40
#031331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#031331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031331
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031331#FFFFFF#000000##FFFFFF
##0313311.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021632
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #031331;
/* rgb */ color: rgb(3, 19, 49);
/* oklch */ color: oklch(19.4% 0.064 259.9);
Tailwind
colors: {
  custom: {
    50: '#4b5069',
    500: '#031331',
    950: '#000000',
  },
}
SCSS
$custom: #031331;
$custom-light: #4b5069;
$custom-dark: #000000;
JSON
{
  "hex": "#031331",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 49
  },
  "hsl": {
    "h": 219.13,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19412,
    "c": 0.06442,
    "h": 259.9
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#031331
secondary
#74551B
accent
#B429FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #031331

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

Preview Lab → · Contrast checker → · Palette generator →

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