#031B39#031B39

#031B39 is a very dark, moderate cyan. Relative luminance 0.011; OKLCH L 22.3% C 0.066 H 255.1°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#031B39
RGBrgb(3, 27, 57)
HSLhsl(213, 90%, 12%)
HSVhsv(213, 95%, 22%)
CMYKcmyk(94.7%, 52.6%, 0%, 77.6%)
CIE-LABlab(9.79, 4.22, -22.14)
CIE-LCHlch(9.79, 22.54, 280.80°)
OKLaboklab(22.34% -0.017 -0.0636)
OKLCHoklch(22.34% 0.066 255.1)
XYZxyz(1.1677, 1.0985, 4.0206)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B39 #392103
analogous
#033639 #031B39 #060339
triadic
#031B39 #39031B #1B3903
tetradic
#031B39 #390336 #392103 #033906
square
#031B39 #390336 #392103 #033906
split-complementary
#031B39 #390603 #363903
monochromatic
#020E1D #020E1D #031B39 #063773 #0952AD

Accessibility & contrast

On white

17.22
#031B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031B39
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B39#FFFFFF#000000##FFFFFF
##031B391.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #031b39;
/* rgb */ color: rgb(3, 27, 57);
/* oklch */ color: oklch(22.3% 0.066 255.1);
Tailwind
colors: {
  custom: {
    50: '#4d566f',
    500: '#031b39',
    950: '#000000',
  },
}
SCSS
$custom: #031b39;
$custom-light: #4d566f;
$custom-dark: #000000;
JSON
{
  "hex": "#031b39",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 57
  },
  "hsl": {
    "h": 213.333,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22339,
    "c": 0.06582,
    "h": 255.1
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#031B39
secondary
#7C511C
accent
#A029FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #031B39

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

Preview Lab → · Contrast checker → · Palette generator →

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