#06123F#06123F

#06123F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.087 H 266.4°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#06123F
RGBrgb(6, 18, 63)
HSLhsl(227, 83%, 14%)
HSVhsv(227, 90%, 25%)
CMYKcmyk(90.5%, 71.4%, 0%, 75.3%)
CIE-LABlab(7.50, 14.76, -30.13)
CIE-LCHlch(7.50, 33.56, 296.10°)
OKLaboklab(20.82% -0.0055 -0.0873)
OKLCHoklch(20.82% 0.087 266.4)
XYZxyz(1.1883, 0.8301, 4.7993)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#06123F #3F3306
analogous
#062E3F #06123F #16063F
triadic
#06123F #3F0612 #123F06
tetradic
#06123F #3F062E #3F3306 #063F16
square
#06123F #3F062E #3F3306 #063F16
split-complementary
#06123F #3F1606 #2E3F06
monochromatic
#03081C #03081C #06123F #0B2277 #1132AF

Accessibility & contrast

On white

18.01
#06123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#06123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #06123F
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##06123F#FFFFFF#000000##FFFFFF
##06123F1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #06123f;
/* rgb */ color: rgb(6, 18, 63);
/* oklch */ color: oklch(20.8% 0.087 266.4);
Tailwind
colors: {
  custom: {
    50: '#514f75',
    500: '#06123f',
    950: '#000000',
  },
}
SCSS
$custom: #06123f;
$custom-light: #514f75;
$custom-dark: #000000;
JSON
{
  "hex": "#06123f",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 227.368,
    "s": 82.609,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20815,
    "c": 0.08744,
    "h": 266.4
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#06123F
secondary
#7F6B22
accent
#CE2FF9
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #06123F

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

Preview Lab → · Contrast checker → · Palette generator →

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