#061231#061231

#061231 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.064 H 264.5°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#061231
RGBrgb(6, 18, 49)
HSLhsl(223, 78%, 11%)
HSVhsv(223, 88%, 19%)
CMYKcmyk(87.8%, 63.3%, 0%, 80.8%)
CIE-LABlab(6.26, 7.66, -21.99)
CIE-LCHlch(6.26, 23.28, 289.20°)
OKLaboklab(19.36% -0.0062 -0.064)
OKLCHoklch(19.36% 0.064 264.5)
XYZxyz(0.8456, 0.6930, 2.9943)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#061231 #312506
analogous
#062731 #061231 #0F0631
triadic
#061231 #310612 #123106
tetradic
#061231 #310627 #312506 #06310F
square
#061231 #310627 #312506 #06310F
split-complementary
#061231 #310F06 #273106
monochromatic
#030A1B #030A1B #061231 #0D2668 #133A9E

Accessibility & contrast

On white

18.44
#061231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#061231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #061231
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##061231#FFFFFF#000000##FFFFFF
##0612311.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011632
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#00191F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #061231;
/* rgb */ color: rgb(6, 18, 49);
/* oklch */ color: oklch(19.4% 0.064 264.5);
Tailwind
colors: {
  custom: {
    50: '#4c4f69',
    500: '#061231',
    950: '#000000',
  },
}
SCSS
$custom: #061231;
$custom-light: #4c4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#061231",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 223.256,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19359,
    "c": 0.06432,
    "h": 264.5
  },
  "luminance": 0.00693
}

Semantic roles & 50–950 ramp

primary
#061231
secondary
#725B21
accent
#BF33F5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #061231

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

Preview Lab → · Contrast checker → · Palette generator →

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