#031338#031338

#031338 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.076 H 262.1°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#031338
RGBrgb(3, 19, 56)
HSLhsl(222, 90%, 12%)
HSVhsv(222, 95%, 22%)
CMYKcmyk(94.6%, 66.1%, 0%, 78%)
CIE-LABlab(6.96, 10.01, -25.99)
CIE-LCHlch(6.96, 27.85, 291.06°)
OKLaboklab(20.11% -0.0104 -0.0753)
OKLCHoklch(20.11% 0.076 262.1)
XYZxyz(0.9840, 0.7705, 3.8375)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031338 #382803
analogous
#032E38 #031338 #0E0338
triadic
#031338 #380313 #133803
tetradic
#031338 #38032E #382803 #03380E
square
#031338 #38032E #382803 #03380E
split-complementary
#031338 #380E03 #2E3803
monochromatic
#020A1D #020A1D #031338 #062772 #093AAC

Accessibility & contrast

On white

18.19
#031338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#031338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031338
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031338#FFFFFF#000000##FFFFFF
##0313381.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031338;
/* rgb */ color: rgb(3, 19, 56);
/* oklch */ color: oklch(20.1% 0.076 262.1);
Tailwind
colors: {
  custom: {
    50: '#4e506f',
    500: '#031338',
    950: '#000000',
  },
}
SCSS
$custom: #031338;
$custom-light: #4e506f;
$custom-dark: #000000;
JSON
{
  "hex": "#031338",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 221.887,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20111,
    "c": 0.07607,
    "h": 262.1
  },
  "luminance": 0.00771
}

Semantic roles & 50–950 ramp

primary
#031338
secondary
#7B5E1C
accent
#BE29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031338

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

Preview Lab → · Contrast checker → · Palette generator →

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