#18124B#18124B

#18124B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.100 H 280.0°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#18124B
RGBrgb(24, 18, 75)
HSLhsl(246, 61%, 18%)
HSVhsv(246, 76%, 29%)
CMYKcmyk(68%, 76%, 0%, 70.6%)
CIE-LABlab(10.07, 22.45, -34.31)
CIE-LCHlch(10.07, 41.00, 303.19°)
OKLaboklab(23.43% 0.0175 -0.0989)
OKLCHoklch(23.43% 0.1 280)
XYZxyz(1.8626, 1.1347, 6.7761)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124B #454B12
analogous
#12284B #18124B #34124B
triadic
#18124B #4B1812 #124B18
tetradic
#18124B #4B1228 #454B12 #124B34
square
#18124B #4B1228 #454B12 #124B34
split-complementary
#18124B #4B3412 #284B12
monochromatic
#080619 #08061A #18124B #281E7C #382AAE

Accessibility & contrast

On white

17.11
#18124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#18124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18124B
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124B#FFFFFF#000000##FFFFFF
##18124B1.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#00194A
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18124b;
/* rgb */ color: rgb(24, 18, 75);
/* oklch */ color: oklch(23.4% 0.100 280.0);
Tailwind
colors: {
  custom: {
    50: '#5c507e',
    500: '#18124b',
    950: '#000000',
  },
}
SCSS
$custom: #18124b;
$custom-light: #5c507e;
$custom-dark: #000000;
JSON
{
  "hex": "#18124b",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 246.316,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23428,
    "c": 0.10044,
    "h": 280
  },
  "luminance": 0.01135
}

Semantic roles & 50–950 ramp

primary
#18124B
secondary
#7C8435
accent
#E443D3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18124B

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

Preview Lab → · Contrast checker → · Palette generator →

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