#18124E#18124E

#18124E is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.105 H 279.3°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#18124E
RGBrgb(24, 18, 78)
HSLhsl(246, 63%, 19%)
HSVhsv(246, 77%, 31%)
CMYKcmyk(69.2%, 76.9%, 0%, 69.4%)
CIE-LABlab(10.38, 23.57, -35.87)
CIE-LCHlch(10.38, 42.92, 303.31°)
OKLaboklab(23.75% 0.0169 -0.1035)
OKLCHoklch(23.75% 0.105 279.3)
XYZxyz(1.9677, 1.1767, 7.3297)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124E #484E12
analogous
#122A4E #18124E #36124E
triadic
#18124E #4E1812 #124E18
tetradic
#18124E #4E122A #484E12 #124E36
square
#18124E #4E122A #484E12 #124E36
split-complementary
#18124E #4E3612 #2A4E12
monochromatic
#080619 #09071C #18124E #271D80 #3729B1

Accessibility & contrast

On white

17.00
#18124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#18124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18124E
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124E#FFFFFF#000000##FFFFFF
##18124E1.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18124e;
/* rgb */ color: rgb(24, 18, 78);
/* oklch */ color: oklch(23.8% 0.105 279.3);
Tailwind
colors: {
  custom: {
    50: '#5d5080',
    500: '#18124e',
    950: '#000000',
  },
}
SCSS
$custom: #18124e;
$custom-light: #5d5080;
$custom-dark: #000000;
JSON
{
  "hex": "#18124e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 246,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23754,
    "c": 0.10484,
    "h": 279.3
  },
  "luminance": 0.01177
}

Semantic roles & 50–950 ramp

primary
#18124E
secondary
#7F8735
accent
#E642D5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18124E

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

Preview Lab → · Contrast checker → · Palette generator →

#18124E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva