#051F40#051F40

#051F40 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.1% C 0.070 H 255.9°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#051F40
RGBrgb(5, 31, 64)
HSLhsl(214, 86%, 14%)
HSVhsv(214, 92%, 25%)
CMYKcmyk(92.2%, 51.6%, 0%, 74.9%)
CIE-LABlab(11.84, 4.79, -23.80)
CIE-LCHlch(11.84, 24.28, 281.39°)
OKLaboklab(24.13% -0.0171 -0.0683)
OKLCHoklch(24.13% 0.07 255.9)
XYZxyz(1.4776, 1.3822, 5.0384)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051F40 #402605
analogous
#053C40 #051F40 #080540
triadic
#051F40 #40051F #1F4005
tetradic
#051F40 #40053C #402605 #054008
square
#051F40 #40053C #402605 #054008
split-complementary
#051F40 #400805 #3C4005
monochromatic
#020E1C #020E1C #051F40 #093A79 #0E56B2

Accessibility & contrast

On white

16.45
#051F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#051F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051F40
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051F40#FFFFFF#000000##FFFFFF
##051F401.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051f40;
/* rgb */ color: rgb(5, 31, 64);
/* oklch */ color: oklch(24.1% 0.070 255.9);
Tailwind
colors: {
  custom: {
    50: '#505a75',
    500: '#051f40',
    950: '#000000',
  },
}
SCSS
$custom: #051f40;
$custom-light: #505a75;
$custom-dark: #000000;
JSON
{
  "hex": "#051f40",
  "rgb": {
    "r": 5,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 213.559,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24129,
    "c": 0.07046,
    "h": 255.9
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#051F40
secondary
#815620
accent
#A02CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051F40

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

Preview Lab → · Contrast checker → · Palette generator →

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