#031F41#031F41

#031F41 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.1% C 0.073 H 255.1°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#031F41
RGBrgb(3, 31, 65)
HSLhsl(213, 91%, 13%)
HSVhsv(213, 95%, 25%)
CMYKcmyk(95.4%, 52.3%, 0%, 74.5%)
CIE-LABlab(11.83, 4.94, -24.53)
CIE-LCHlch(11.83, 25.02, 281.39°)
OKLaboklab(24.12% -0.0187 -0.0705)
OKLCHoklch(24.12% 0.073 255.1)
XYZxyz(1.4813, 1.3808, 5.1884)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031F41 #412503
analogous
#033E41 #031F41 #060341
triadic
#031F41 #41031F #1F4103
tetradic
#031F41 #41033E #412503 #034106
square
#031F41 #41033E #412503 #034106
split-complementary
#031F41 #410603 #3E4103
monochromatic
#010E1D #010E1D #031F41 #063B7B #0857B6

Accessibility & contrast

On white

16.46
#031F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#031F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031F41
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031F41#FFFFFF#000000##FFFFFF
##031F411.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2242
Deuteranopia (green-blind)
#001D40
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #031f41;
/* rgb */ color: rgb(3, 31, 65);
/* oklch */ color: oklch(24.1% 0.073 255.1);
Tailwind
colors: {
  custom: {
    50: '#505a76',
    500: '#031f41',
    950: '#000000',
  },
}
SCSS
$custom: #031f41;
$custom-light: #505a76;
$custom-dark: #000000;
JSON
{
  "hex": "#031f41",
  "rgb": {
    "r": 3,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 212.903,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24122,
    "c": 0.07294,
    "h": 255.1
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#031F41
secondary
#83551D
accent
#9E29FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031F41

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

Preview Lab → · Contrast checker → · Palette generator →

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