#031B3A#031B3A

#031B3A is a very dark, moderate cyan. Relative luminance 0.011; OKLCH L 22.4% C 0.067 H 255.6°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#031B3A
RGBrgb(3, 27, 58)
HSLhsl(214, 90%, 12%)
HSVhsv(214, 95%, 23%)
CMYKcmyk(94.8%, 53.4%, 0%, 77.3%)
CIE-LABlab(9.87, 4.71, -22.73)
CIE-LCHlch(9.87, 23.21, 281.70°)
OKLaboklab(22.43% -0.0167 -0.0653)
OKLCHoklch(22.43% 0.067 255.6)
XYZxyz(1.1929, 1.1086, 4.1533)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B3A #3A2203
analogous
#03373A #031B3A #06033A
triadic
#031B3A #3A031B #1B3A03
tetradic
#031B3A #3A0337 #3A2203 #033A06
square
#031B3A #3A0337 #3A2203 #033A06
split-complementary
#031B3A #3A0603 #373A03
monochromatic
#020E1D #020E1D #031B3A #063674 #0951AE

Accessibility & contrast

On white

17.19
#031B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#031B3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031B3A
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B3A#FFFFFF#000000##FFFFFF
##031B3A1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1E3B
Deuteranopia (green-blind)
#001939
Tritanopia (blue-blind)
#002227
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031b3a;
/* rgb */ color: rgb(3, 27, 58);
/* oklch */ color: oklch(22.4% 0.067 255.6);
Tailwind
colors: {
  custom: {
    50: '#4e5670',
    500: '#031b3a',
    950: '#000000',
  },
}
SCSS
$custom: #031b3a;
$custom-light: #4e5670;
$custom-dark: #000000;
JSON
{
  "hex": "#031b3a",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 58
  },
  "hsl": {
    "h": 213.818,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22425,
    "c": 0.06743,
    "h": 255.6
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#031B3A
secondary
#7D531C
accent
#A229FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #031B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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