#060840#060840

#060840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.102 H 269.7°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#060840
RGBrgb(6, 8, 64)
HSLhsl(238, 83%, 14%)
HSVhsv(238, 91%, 25%)
CMYKcmyk(90.6%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.26, 21.01, -34.50)
CIE-LCHlch(5.26, 40.40, 301.34°)
OKLaboklab(18.96% -0.0005 -0.1019)
OKLCHoklch(18.96% 0.102 269.7)
XYZxyz(1.0870, 0.5824, 4.9046)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060840 #403E06
analogous
#062540 #060840 #210640
triadic
#060840 #400608 #084006
tetradic
#060840 #400625 #403E06 #064021
square
#060840 #400625 #403E06 #064021
split-complementary
#060840 #402106 #254006
monochromatic
#03031C #03031C #060840 #0B0F78 #1016B0

Accessibility & contrast

On white

18.81
#060840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #060840
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060840#FFFFFF#000000##FFFFFF
##0608401.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #060840;
/* rgb */ color: rgb(6, 8, 64);
/* oklch */ color: oklch(19.0% 0.102 269.7);
Tailwind
colors: {
  custom: {
    50: '#524976',
    500: '#060840',
    950: '#000000',
  },
}
SCSS
$custom: #060840;
$custom-light: #524976;
$custom-dark: #000000;
JSON
{
  "hex": "#060840",
  "rgb": {
    "r": 6,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 237.931,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.18958,
    "c": 0.1019,
    "h": 269.7
  },
  "luminance": 0.00583
}

Semantic roles & 50–950 ramp

primary
#060840
secondary
#807D22
accent
#F22FF9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #060840

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

Preview Lab → · Contrast checker → · Palette generator →

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