#052540#052540

#052540 is a dark, moderate cyan. Relative luminance 0.017; OKLCH L 25.8% C 0.063 H 248.4°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#052540
RGBrgb(5, 37, 64)
HSLhsl(207, 86%, 14%)
HSVhsv(207, 92%, 25%)
CMYKcmyk(92.2%, 42.2%, 0%, 74.9%)
CIE-LABlab(13.97, 0.24, -20.39)
CIE-LCHlch(13.97, 20.39, 270.68°)
OKLaboklab(25.8% -0.0231 -0.0582)
OKLCHoklch(25.8% 0.063 248.4)
XYZxyz(1.6492, 1.7254, 5.0956)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#052540 #402005
analogous
#05403D #052540 #050740
triadic
#052540 #400525 #254005
tetradic
#052540 #3D0540 #402005 #074005
square
#052540 #3D0540 #402005 #074005
split-complementary
#052540 #400507 #403D05
monochromatic
#02101C #02101C #052540 #094679 #0E67B2

Accessibility & contrast

On white

15.61
#052540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#052540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #052540
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##052540#FFFFFF#000000##FFFFFF
##0525401.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182641
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#002B2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #052540;
/* rgb */ color: rgb(5, 37, 64);
/* oklch */ color: oklch(25.8% 0.063 248.4);
Tailwind
colors: {
  custom: {
    50: '#505f75',
    500: '#052540',
    950: '#000000',
  },
}
SCSS
$custom: #052540;
$custom-light: #505f75;
$custom-dark: #000000;
JSON
{
  "hex": "#052540",
  "rgb": {
    "r": 5,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 207.458,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25795,
    "c": 0.06258,
    "h": 248.4
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#052540
secondary
#814C20
accent
#8B2CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #052540

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

Preview Lab → · Contrast checker → · Palette generator →

#052540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva