#061538#061538

#061538 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.8% C 0.072 H 263.4°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#061538
RGBrgb(6, 21, 56)
HSLhsl(222, 81%, 12%)
HSVhsv(222, 89%, 22%)
CMYKcmyk(89.3%, 62.5%, 0%, 78%)
CIE-LABlab(7.77, 9.13, -24.66)
CIE-LCHlch(7.77, 26.30, 290.31°)
OKLaboklab(20.81% -0.0082 -0.0711)
OKLCHoklch(20.81% 0.072 263.4)
XYZxyz(1.0568, 0.8605, 3.8510)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#061538 #382906
analogous
#062E38 #061538 #100638
triadic
#061538 #380615 #153806
tetradic
#061538 #38062E #382906 #063810
square
#061538 #38062E #382906 #063810
split-complementary
#061538 #381006 #2E3806
monochromatic
#030A1C #030A1C #061538 #0C2A6F #123EA7

Accessibility & contrast

On white

17.92
#061538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#061538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #061538
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##061538#FFFFFF#000000##FFFFFF
##0615381.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A39
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#001E23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #061538;
/* rgb */ color: rgb(6, 21, 56);
/* oklch */ color: oklch(20.8% 0.072 263.4);
Tailwind
colors: {
  custom: {
    50: '#4f516f',
    500: '#061538',
    950: '#000000',
  },
}
SCSS
$custom: #061538;
$custom-light: #4f516f;
$custom-dark: #000000;
JSON
{
  "hex": "#061538",
  "rgb": {
    "r": 6,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 222,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20813,
    "c": 0.07158,
    "h": 263.4
  },
  "luminance": 0.00861
}

Semantic roles & 50–950 ramp

primary
#061538
secondary
#785E21
accent
#BC31F7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #061538

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

Preview Lab → · Contrast checker → · Palette generator →

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