#060542#060542

#060542 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.7% C 0.108 H 270.1°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#060542
RGBrgb(6, 5, 66)
HSLhsl(241, 86%, 14%)
HSVhsv(241, 92%, 26%)
CMYKcmyk(90.9%, 92.4%, 0%, 74.1%)
CIE-LABlab(4.88, 23.51, -36.55)
CIE-LCHlch(4.88, 43.46, 302.75°)
OKLaboklab(18.68% 0.0001 -0.1084)
OKLCHoklch(18.68% 0.108 270.1)
XYZxyz(1.1124, 0.5405, 5.1989)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060542 #414205
analogous
#052342 #060542 #250542
triadic
#060542 #420605 #054206
tetradic
#060542 #420523 #414205 #054225
square
#060542 #420523 #414205 #054225
split-complementary
#060542 #422505 #234205
monochromatic
#03021C #03021C #060542 #0B097B #100EB4

Accessibility & contrast

On white

18.95
#060542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#060542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060542
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060542#FFFFFF#000000##FFFFFF
##0605421.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001444
Deuteranopia (green-blind)
#000D41
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #060542;
/* rgb */ color: rgb(6, 5, 66);
/* oklch */ color: oklch(18.7% 0.108 270.1);
Tailwind
colors: {
  custom: {
    50: '#534777',
    500: '#060542',
    950: '#000000',
  },
}
SCSS
$custom: #060542;
$custom-light: #534777;
$custom-dark: #000000;
JSON
{
  "hex": "#060542",
  "rgb": {
    "r": 6,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 240.984,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.18681,
    "c": 0.10842,
    "h": 270.1
  },
  "luminance": 0.00541
}

Semantic roles & 50–950 ramp

primary
#060542
secondary
#818220
accent
#FC2CF9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #060542

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

Preview Lab → · Contrast checker → · Palette generator →

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