#061238#061238

#061238 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.076 H 265.8°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#061238
RGBrgb(6, 18, 56)
HSLhsl(226, 81%, 12%)
HSVhsv(226, 89%, 22%)
CMYKcmyk(89.3%, 67.9%, 0%, 78%)
CIE-LABlab(6.84, 11.32, -26.18)
CIE-LCHlch(6.84, 28.52, 293.38°)
OKLaboklab(20.06% -0.0056 -0.0759)
OKLCHoklch(20.06% 0.076 265.8)
XYZxyz(1.0050, 0.7567, 3.8337)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#061238 #382C06
analogous
#062B38 #061238 #130638
triadic
#061238 #380612 #123806
tetradic
#061238 #38062B #382C06 #063813
square
#061238 #38062B #382C06 #063813
split-complementary
#061238 #381306 #2B3806
monochromatic
#03091C #03091C #061238 #0C246F #1236A7

Accessibility & contrast

On white

18.24
#061238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#061238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #061238
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##061238#FFFFFF#000000##FFFFFF
##0612381.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #061238;
/* rgb */ color: rgb(6, 18, 56);
/* oklch */ color: oklch(20.1% 0.076 265.8);
Tailwind
colors: {
  custom: {
    50: '#4f4f6f',
    500: '#061238',
    950: '#000000',
  },
}
SCSS
$custom: #061238;
$custom-light: #4f4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#061238",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 225.6,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20063,
    "c": 0.07613,
    "h": 265.8
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#061238
secondary
#786321
accent
#C731F7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #061238

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

Preview Lab → · Contrast checker → · Palette generator →

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