#031B38#031B38

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

Color values

HEX#031B38
RGBrgb(3, 27, 56)
HSLhsl(213, 90%, 12%)
HSVhsv(213, 95%, 22%)
CMYKcmyk(94.6%, 51.8%, 0%, 78%)
CIE-LABlab(9.71, 3.74, -21.55)
CIE-LCHlch(9.71, 21.87, 279.84°)
OKLaboklab(22.25% -0.0172 -0.0618)
OKLCHoklch(22.25% 0.064 254.4)
XYZxyz(1.1430, 1.0886, 3.8905)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B38 #382003
analogous
#033638 #031B38 #050338
triadic
#031B38 #38031B #1B3803
tetradic
#031B38 #380336 #382003 #033805
square
#031B38 #380336 #382003 #033805
split-complementary
#031B38 #380503 #363803
monochromatic
#020E1D #020E1D #031B38 #063772 #0953AC

Accessibility & contrast

On white

17.24
#031B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031B38
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B38#FFFFFF#000000##FFFFFF
##031B381.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1E39
Deuteranopia (green-blind)
#021937
Tritanopia (blue-blind)
#002226
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031b38;
/* rgb */ color: rgb(3, 27, 56);
/* oklch */ color: oklch(22.3% 0.064 254.4);
Tailwind
colors: {
  custom: {
    50: '#4d566f',
    500: '#031b38',
    950: '#000000',
  },
}
SCSS
$custom: #031b38;
$custom-light: #4d566f;
$custom-dark: #000000;
JSON
{
  "hex": "#031b38",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 56
  },
  "hsl": {
    "h": 212.83,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22254,
    "c": 0.06419,
    "h": 254.4
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#031B38
secondary
#7B501C
accent
#9E29FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #031B38

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

Preview Lab → · Contrast checker → · Palette generator →

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