#18124C#18124C

#18124C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.102 H 279.8°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#18124C
RGBrgb(24, 18, 76)
HSLhsl(246, 62%, 18%)
HSVhsv(246, 76%, 30%)
CMYKcmyk(68.4%, 76.3%, 0%, 70.2%)
CIE-LABlab(10.17, 22.82, -34.84)
CIE-LCHlch(10.17, 41.64, 303.23°)
OKLaboklab(23.54% 0.0173 -0.1004)
OKLCHoklch(23.54% 0.102 279.8)
XYZxyz(1.8971, 1.1485, 6.9578)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124C #464C12
analogous
#12294C #18124C #35124C
triadic
#18124C #4C1812 #124C18
tetradic
#18124C #4C1229 #464C12 #124C35
square
#18124C #4C1229 #464C12 #124C35
split-complementary
#18124C #4C3512 #294C12
monochromatic
#080619 #08061B #18124C #281E7D #3729AF

Accessibility & contrast

On white

17.08
#18124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18124C
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124C#FFFFFF#000000##FFFFFF
##18124C1.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18124c;
/* rgb */ color: rgb(24, 18, 76);
/* oklch */ color: oklch(23.5% 0.102 279.8);
Tailwind
colors: {
  custom: {
    50: '#5d507f',
    500: '#18124c',
    950: '#000000',
  },
}
SCSS
$custom: #18124c;
$custom-light: #5d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#18124c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 246.207,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23536,
    "c": 0.10192,
    "h": 279.8
  },
  "luminance": 0.01149
}

Semantic roles & 50–950 ramp

primary
#18124C
secondary
#7D8535
accent
#E543D4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18124C

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

Preview Lab → · Contrast checker → · Palette generator →

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