#031F40#031F40

#031F40 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.0% C 0.071 H 254.6°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#031F40
RGBrgb(3, 31, 64)
HSLhsl(212, 91%, 13%)
HSVhsv(212, 95%, 25%)
CMYKcmyk(95.3%, 51.6%, 0%, 74.9%)
CIE-LABlab(11.75, 4.46, -23.95)
CIE-LCHlch(11.75, 24.36, 280.55°)
OKLaboklab(24.04% -0.019 -0.0688)
OKLCHoklch(24.04% 0.071 254.6)
XYZxyz(1.4526, 1.3693, 5.0372)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031F40 #402403
analogous
#033D40 #031F40 #050340
triadic
#031F40 #40031F #1F4003
tetradic
#031F40 #40033D #402403 #034005
square
#031F40 #40033D #402403 #034005
split-complementary
#031F40 #400503 #3D4003
monochromatic
#010E1D #010E1D #031F40 #063B7A #0858B5

Accessibility & contrast

On white

16.49
#031F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#031F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031F40
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031F40#FFFFFF#000000##FFFFFF
##031F401.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #031f40;
/* rgb */ color: rgb(3, 31, 64);
/* oklch */ color: oklch(24.0% 0.071 254.6);
Tailwind
colors: {
  custom: {
    50: '#505a75',
    500: '#031f40',
    950: '#000000',
  },
}
SCSS
$custom: #031f40;
$custom-light: #505a75;
$custom-dark: #000000;
JSON
{
  "hex": "#031f40",
  "rgb": {
    "r": 3,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 212.459,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24037,
    "c": 0.07136,
    "h": 254.6
  },
  "luminance": 0.01369
}

Semantic roles & 50–950 ramp

primary
#031F40
secondary
#82541D
accent
#9D29FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031F40

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

Preview Lab → · Contrast checker → · Palette generator →

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