#060540#060540

#060540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.4% C 0.106 H 270.4°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#060540
RGBrgb(6, 5, 64)
HSLhsl(241, 86%, 14%)
HSVhsv(241, 92%, 25%)
CMYKcmyk(90.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.67, 22.41, -35.47)
CIE-LCHlch(4.67, 41.95, 302.29°)
OKLaboklab(18.39% 0.0007 -0.1057)
OKLCHoklch(18.39% 0.106 270.4)
XYZxyz(1.0545, 0.5173, 4.8938)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060540 #3F4005
analogous
#052140 #060540 #230540
triadic
#060540 #400605 #054006
tetradic
#060540 #400521 #3F4005 #054023
square
#060540 #400521 #3F4005 #054023
split-complementary
#060540 #402305 #214005
monochromatic
#03021C #03021C #060540 #0B0979 #110EB2

Accessibility & contrast

On white

19.03
#060540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#060540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060540
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060540#FFFFFF#000000##FFFFFF
##0605401.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000D3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #060540;
/* rgb */ color: rgb(6, 5, 64);
/* oklch */ color: oklch(18.4% 0.106 270.4);
Tailwind
colors: {
  custom: {
    50: '#524776',
    500: '#060540',
    950: '#000000',
  },
}
SCSS
$custom: #060540;
$custom-light: #524776;
$custom-dark: #000000;
JSON
{
  "hex": "#060540",
  "rgb": {
    "r": 6,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 241.017,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18393,
    "c": 0.10571,
    "h": 270.4
  },
  "luminance": 0.00517
}

Semantic roles & 50–950 ramp

primary
#060540
secondary
#7F8120
accent
#FC2CF8
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #060540

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

Preview Lab → · Contrast checker → · Palette generator →

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