#060C40#060C40

#060C40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.097 H 268.7°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#060C40
RGBrgb(6, 12, 64)
HSLhsl(234, 83%, 14%)
HSVhsv(234, 91%, 25%)
CMYKcmyk(90.6%, 81.2%, 0%, 74.9%)
CIE-LABlab(6.07, 19.06, -33.19)
CIE-LCHlch(6.07, 38.27, 299.87°)
OKLaboklab(19.68% -0.0022 -0.0971)
OKLCHoklch(19.68% 0.097 268.7)
XYZxyz(1.1317, 0.6717, 4.9195)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060C40 #403A06
analogous
#062940 #060C40 #1D0640
triadic
#060C40 #40060C #0C4006
tetradic
#060C40 #400629 #403A06 #06401D
square
#060C40 #400629 #403A06 #06401D
split-complementary
#060C40 #401D06 #294006
monochromatic
#03051C #03051C #060C40 #0B1678 #1021B0

Accessibility & contrast

On white

18.51
#060C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#060C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060C40
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060C40#FFFFFF#000000##FFFFFF
##060C401.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #060c40;
/* rgb */ color: rgb(6, 12, 64);
/* oklch */ color: oklch(19.7% 0.097 268.7);
Tailwind
colors: {
  custom: {
    50: '#524b75',
    500: '#060c40',
    950: '#000000',
  },
}
SCSS
$custom: #060c40;
$custom-light: #524b75;
$custom-dark: #000000;
JSON
{
  "hex": "#060c40",
  "rgb": {
    "r": 6,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 233.793,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.19681,
    "c": 0.09708,
    "h": 268.7
  },
  "luminance": 0.00672
}

Semantic roles & 50–950 ramp

primary
#060C40
secondary
#807622
accent
#E42FF9
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #060C40

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

Preview Lab → · Contrast checker → · Palette generator →

#060C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva