#18124A#18124A

#18124A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.099 H 280.3°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#18124A
RGBrgb(24, 18, 74)
HSLhsl(246, 61%, 18%)
HSVhsv(246, 76%, 29%)
CMYKcmyk(67.6%, 75.7%, 0%, 71%)
CIE-LABlab(9.96, 22.07, -33.79)
CIE-LCHlch(9.96, 40.36, 303.15°)
OKLaboklab(23.32% 0.0177 -0.0974)
OKLCHoklch(23.32% 0.099 280.3)
XYZxyz(1.8286, 1.1211, 6.5973)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124A #444A12
analogous
#12284A #18124A #34124A
triadic
#18124A #4A1812 #124A18
tetradic
#18124A #4A1228 #444A12 #124A34
square
#18124A #4A1228 #444A12 #124A34
split-complementary
#18124A #4A3412 #284A12
monochromatic
#080619 #080619 #18124A #281E7B #382AAC

Accessibility & contrast

On white

17.15
#18124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#18124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18124A
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124A#FFFFFF#000000##FFFFFF
##18124A1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18124a;
/* rgb */ color: rgb(24, 18, 74);
/* oklch */ color: oklch(23.3% 0.099 280.3);
Tailwind
colors: {
  custom: {
    50: '#5c507d',
    500: '#18124a',
    950: '#000000',
  },
}
SCSS
$custom: #18124a;
$custom-light: #5c507d;
$custom-dark: #000000;
JSON
{
  "hex": "#18124a",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 246.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23321,
    "c": 0.09897,
    "h": 280.3
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#18124A
secondary
#7B8335
accent
#E444D3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18124A

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

Preview Lab → · Contrast checker → · Palette generator →

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