#060838#060838

#060838 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.090 H 270.7°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#060838
RGBrgb(6, 8, 56)
HSLhsl(238, 81%, 12%)
HSVhsv(238, 89%, 22%)
CMYKcmyk(89.3%, 85.7%, 0%, 78%)
CIE-LABlab(4.50, 16.46, -29.97)
CIE-LCHlch(4.50, 34.19, 298.79°)
OKLaboklab(17.89% 0.0011 -0.0902)
OKLCHoklch(17.89% 0.09 270.7)
XYZxyz(0.8755, 0.4978, 3.7906)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060838 #383606
analogous
#062138 #060838 #1D0638
triadic
#060838 #380608 #083806
tetradic
#060838 #380621 #383606 #06381D
square
#060838 #380621 #383606 #06381D
split-complementary
#060838 #381D06 #213806
monochromatic
#03041C #03041C #060838 #0C106F #1218A7

Accessibility & contrast

On white

19.10
#060838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #060838
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060838#FFFFFF#000000##FFFFFF
##0608381.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000D37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #060838;
/* rgb */ color: rgb(6, 8, 56);
/* oklch */ color: oklch(17.9% 0.090 270.7);
Tailwind
colors: {
  custom: {
    50: '#4f496f',
    500: '#060838',
    950: '#000000',
  },
}
SCSS
$custom: #060838;
$custom-light: #4f496f;
$custom-dark: #000000;
JSON
{
  "hex": "#060838",
  "rgb": {
    "r": 6,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 237.6,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17891,
    "c": 0.09023,
    "h": 270.7
  },
  "luminance": 0.00498
}

Semantic roles & 50–950 ramp

primary
#060838
secondary
#787521
accent
#EF31F7
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020107
muted
#78777A

Preview Lab

Preview with #060838

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

Preview Lab → · Contrast checker → · Palette generator →

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