#051F3F#051F3F

#051F3F is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.0% C 0.069 H 255.4°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#051F3F
RGBrgb(5, 31, 63)
HSLhsl(213, 85%, 13%)
HSVhsv(213, 92%, 25%)
CMYKcmyk(92.1%, 50.8%, 0%, 75.3%)
CIE-LABlab(11.76, 4.32, -23.22)
CIE-LCHlch(11.76, 23.62, 280.55°)
OKLaboklab(24.05% -0.0174 -0.0666)
OKLCHoklch(24.05% 0.069 255.4)
XYZxyz(1.4494, 1.3709, 4.8899)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051F3F #3F2505
analogous
#053C3F #051F3F #08053F
triadic
#051F3F #3F051F #1F3F05
tetradic
#051F3F #3F053C #3F2505 #053F08
square
#051F3F #3F053C #3F2505 #053F08
split-complementary
#051F3F #3F0805 #3C3F05
monochromatic
#020E1C #020E1C #051F3F #093B78 #0E57B0

Accessibility & contrast

On white

16.48
#051F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#051F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051F3F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051F3F#FFFFFF#000000##FFFFFF
##051F3F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2240
Deuteranopia (green-blind)
#031D3E
Tritanopia (blue-blind)
#00272B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #051f3f;
/* rgb */ color: rgb(5, 31, 63);
/* oklch */ color: oklch(24.0% 0.069 255.4);
Tailwind
colors: {
  custom: {
    50: '#505a74',
    500: '#051f3f',
    950: '#000000',
  },
}
SCSS
$custom: #051f3f;
$custom-light: #505a74;
$custom-dark: #000000;
JSON
{
  "hex": "#051f3f",
  "rgb": {
    "r": 5,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 213.103,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24046,
    "c": 0.06886,
    "h": 255.4
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#051F3F
secondary
#805520
accent
#9F2CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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