#06123A#06123A

#06123A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.079 H 266.0°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#06123A
RGBrgb(6, 18, 58)
HSLhsl(226, 81%, 13%)
HSVhsv(226, 90%, 23%)
CMYKcmyk(89.7%, 69%, 0%, 77.3%)
CIE-LABlab(7.02, 12.32, -27.33)
CIE-LCHlch(7.02, 29.98, 294.27°)
OKLaboklab(20.27% -0.0056 -0.0792)
OKLCHoklch(20.27% 0.079 266)
XYZxyz(1.0549, 0.7767, 4.0965)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#06123A #3A2E06
analogous
#062C3A #06123A #14063A
triadic
#06123A #3A0612 #123A06
tetradic
#06123A #3A062C #3A2E06 #063A14
square
#06123A #3A062C #3A2E06 #063A14
split-complementary
#06123A #3A1406 #2C3A06
monochromatic
#03091C #03091C #06123A #0C2371 #1134A9

Accessibility & contrast

On white

18.18
#06123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#06123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #06123A
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##06123A#FFFFFF#000000##FFFFFF
##06123A1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #06123a;
/* rgb */ color: rgb(6, 18, 58);
/* oklch */ color: oklch(20.3% 0.079 266.0);
Tailwind
colors: {
  custom: {
    50: '#504f71',
    500: '#06123a',
    950: '#000000',
  },
}
SCSS
$custom: #06123a;
$custom-light: #504f71;
$custom-dark: #000000;
JSON
{
  "hex": "#06123a",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 226.154,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20273,
    "c": 0.0794,
    "h": 266
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#06123A
secondary
#7A6622
accent
#CA30F8
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #06123A

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

Preview Lab → · Contrast checker → · Palette generator →

#06123A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva