#062040#062040

#062040 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.4% C 0.069 H 255.5°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#062040
RGBrgb(6, 32, 64)
HSLhsl(213, 83%, 14%)
HSVhsv(213, 91%, 25%)
CMYKcmyk(90.6%, 50%, 0%, 74.9%)
CIE-LABlab(12.23, 4.19, -23.17)
CIE-LCHlch(12.23, 23.55, 280.25°)
OKLaboklab(24.45% -0.0172 -0.0664)
OKLCHoklch(24.45% 0.069 255.5)
XYZxyz(1.5167, 1.4417, 5.0478)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#062040 #402606
analogous
#063D40 #062040 #090640
triadic
#062040 #400620 #204006
tetradic
#062040 #40063D #402606 #064009
square
#062040 #40063D #402606 #064009
split-complementary
#062040 #400906 #3D4006
monochromatic
#030E1C #030E1C #062040 #0B3C78 #1058B0

Accessibility & contrast

On white

16.30
#062040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#062040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #062040
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##062040#FFFFFF#000000##FFFFFF
##0620401.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#051E3F
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #062040;
/* rgb */ color: rgb(6, 32, 64);
/* oklch */ color: oklch(24.4% 0.069 255.5);
Tailwind
colors: {
  custom: {
    50: '#515a75',
    500: '#062040',
    950: '#000000',
  },
}
SCSS
$custom: #062040;
$custom-light: #515a75;
$custom-dark: #000000;
JSON
{
  "hex": "#062040",
  "rgb": {
    "r": 6,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 213.103,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24447,
    "c": 0.06863,
    "h": 255.5
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#062040
secondary
#805622
accent
#9E2FF9
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #062040

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

Preview Lab → · Contrast checker → · Palette generator →

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