#060842#060842

#060842 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.2% C 0.105 H 269.5°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#060842
RGBrgb(6, 8, 66)
HSLhsl(238, 83%, 14%)
HSVhsv(238, 91%, 26%)
CMYKcmyk(90.9%, 87.9%, 0%, 74.1%)
CIE-LABlab(5.47, 22.08, -35.59)
CIE-LCHlch(5.47, 41.88, 301.81°)
OKLaboklab(19.23% -0.0009 -0.1047)
OKLCHoklch(19.23% 0.105 269.5)
XYZxyz(1.1450, 0.6056, 5.2097)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060842 #424006
analogous
#062642 #060842 #220642
triadic
#060842 #420608 #084206
tetradic
#060842 #420626 #424006 #064222
square
#060842 #420626 #424006 #064222
split-complementary
#060842 #422206 #264206
monochromatic
#03031C #03031C #060842 #0B0F7A #1016B2

Accessibility & contrast

On white

18.73
#060842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#060842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060842
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060842#FFFFFF#000000##FFFFFF
##0608421.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#000F41
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #060842;
/* rgb */ color: rgb(6, 8, 66);
/* oklch */ color: oklch(19.2% 0.105 269.5);
Tailwind
colors: {
  custom: {
    50: '#534977',
    500: '#060842',
    950: '#000000',
  },
}
SCSS
$custom: #060842;
$custom-light: #534977;
$custom-dark: #000000;
JSON
{
  "hex": "#060842",
  "rgb": {
    "r": 6,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 238,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.1923,
    "c": 0.10472,
    "h": 269.5
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#060842
secondary
#827E22
accent
#F32EFA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #060842

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

Preview Lab → · Contrast checker → · Palette generator →

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