#18124F#18124F

#18124F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.106 H 279.1°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#18124F
RGBrgb(24, 18, 79)
HSLhsl(246, 63%, 19%)
HSVhsv(246, 77%, 31%)
CMYKcmyk(69.6%, 77.2%, 0%, 69%)
CIE-LABlab(10.49, 23.93, -36.38)
CIE-LCHlch(10.49, 43.55, 303.34°)
OKLaboklab(23.86% 0.0167 -0.105)
OKLCHoklch(23.86% 0.106 279.1)
XYZxyz(2.0038, 1.1912, 7.5199)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124F #494F12
analogous
#122B4F #18124F #37124F
triadic
#18124F #4F1812 #124F18
tetradic
#18124F #4F122B #494F12 #124F37
square
#18124F #4F122B #494F12 #124F37
split-complementary
#18124F #4F3712 #2B4F12
monochromatic
#080619 #09071D #18124F #271D81 #3629B3

Accessibility & contrast

On white

16.96
#18124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18124F
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124F#FFFFFF#000000##FFFFFF
##18124F1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18124f;
/* rgb */ color: rgb(24, 18, 79);
/* oklch */ color: oklch(23.9% 0.106 279.1);
Tailwind
colors: {
  custom: {
    50: '#5d5081',
    500: '#18124f',
    950: '#000000',
  },
}
SCSS
$custom: #18124f;
$custom-light: #5d5081;
$custom-dark: #000000;
JSON
{
  "hex": "#18124f",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 245.902,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23863,
    "c": 0.10628,
    "h": 279.1
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#18124F
secondary
#808835
accent
#E642D6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18124F

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

Preview Lab → · Contrast checker → · Palette generator →

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