#031339#031339

#031339 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.078 H 262.4°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#031339
RGBrgb(3, 19, 57)
HSLhsl(222, 90%, 12%)
HSVhsv(222, 95%, 22%)
CMYKcmyk(94.7%, 66.7%, 0%, 77.6%)
CIE-LABlab(7.05, 10.53, -26.57)
CIE-LCHlch(7.05, 28.58, 291.62°)
OKLaboklab(20.22% -0.0103 -0.077)
OKLCHoklch(20.22% 0.078 262.4)
XYZxyz(1.0087, 0.7804, 3.9676)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031339 #392903
analogous
#032E39 #031339 #0E0339
triadic
#031339 #390313 #133903
tetradic
#031339 #39032E #392903 #03390E
square
#031339 #39032E #392903 #03390E
split-complementary
#031339 #390E03 #2E3903
monochromatic
#020A1D #020A1D #031339 #062673 #093AAD

Accessibility & contrast

On white

18.16
#031339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#031339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031339
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031339#FFFFFF#000000##FFFFFF
##0313391.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#001D23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #031339;
/* rgb */ color: rgb(3, 19, 57);
/* oklch */ color: oklch(20.2% 0.078 262.4);
Tailwind
colors: {
  custom: {
    50: '#4e5070',
    500: '#031339',
    950: '#000000',
  },
}
SCSS
$custom: #031339;
$custom-light: #4e5070;
$custom-dark: #000000;
JSON
{
  "hex": "#031339",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 57
  },
  "hsl": {
    "h": 222.222,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20215,
    "c": 0.0777,
    "h": 262.4
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#031339
secondary
#7C5F1C
accent
#C029FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031339

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

Preview Lab → · Contrast checker → · Palette generator →

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