#061240#061240

#061240 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.089 H 266.4°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#061240
RGBrgb(6, 18, 64)
HSLhsl(228, 83%, 14%)
HSVhsv(228, 91%, 25%)
CMYKcmyk(90.6%, 71.9%, 0%, 74.9%)
CIE-LABlab(7.60, 15.23, -30.68)
CIE-LCHlch(7.60, 34.25, 296.40°)
OKLaboklab(20.93% -0.0055 -0.0888)
OKLCHoklch(20.93% 0.089 266.4)
XYZxyz(1.2165, 0.8414, 4.9478)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#061240 #403406
analogous
#062F40 #061240 #170640
triadic
#061240 #400612 #124006
tetradic
#061240 #40062F #403406 #064017
square
#061240 #40062F #403406 #064017
split-complementary
#061240 #401706 #2F4006
monochromatic
#03081C #03081C #061240 #0B2278 #1031B0

Accessibility & contrast

On white

17.98
#061240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#061240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #061240
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##061240#FFFFFF#000000##FFFFFF
##0612401.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #061240;
/* rgb */ color: rgb(6, 18, 64);
/* oklch */ color: oklch(20.9% 0.089 266.4);
Tailwind
colors: {
  custom: {
    50: '#524f75',
    500: '#061240',
    950: '#000000',
  },
}
SCSS
$custom: #061240;
$custom-light: #524f75;
$custom-dark: #000000;
JSON
{
  "hex": "#061240",
  "rgb": {
    "r": 6,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 227.586,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20925,
    "c": 0.08901,
    "h": 266.4
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#061240
secondary
#806C22
accent
#CF2FF9
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #061240

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

Preview Lab → · Contrast checker → · Palette generator →

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