#061228#061228

#061228 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.5% C 0.048 H 260.7°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#061228
RGBrgb(6, 18, 40)
HSLhsl(219, 74%, 9%)
HSVhsv(219, 85%, 16%)
CMYKcmyk(85%, 55%, 0%, 84.3%)
CIE-LABlab(5.64, 3.31, -16.26)
CIE-LCHlch(5.64, 16.59, 281.50°)
OKLaboklab(18.54% -0.0078 -0.0478)
OKLCHoklch(18.54% 0.048 260.7)
XYZxyz(0.6743, 0.6245, 2.0921)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#061228 #281C06
analogous
#062328 #061228 #0B0628
triadic
#061228 #280612 #122806
tetradic
#061228 #280623 #281C06 #06280B
square
#061228 #280623 #281C06 #06280B
split-complementary
#061228 #280B06 #232806
monochromatic
#040C1B #040C1B #061228 #0E2A5D #164292

Accessibility & contrast

On white

18.67
#061228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#061228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #061228
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##061228#FFFFFF#000000##FFFFFF
##0612281.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081429
Deuteranopia (green-blind)
#031128
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #061228;
/* rgb */ color: rgb(6, 18, 40);
/* oklch */ color: oklch(18.5% 0.048 260.7);
Tailwind
colors: {
  custom: {
    50: '#4a4f62',
    500: '#061228',
    950: '#000000',
  },
}
SCSS
$custom: #061228;
$custom-light: #4a4f62;
$custom-dark: #000000;
JSON
{
  "hex": "#061228",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 218.824,
    "s": 73.913,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18541,
    "c": 0.04848,
    "h": 260.7
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#061228
secondary
#694F21
accent
#AF37F1
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #061228

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

Preview Lab → · Contrast checker → · Palette generator →

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