#18124D#18124D

#18124D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.103 H 279.5°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#18124D
RGBrgb(24, 18, 77)
HSLhsl(246, 62%, 19%)
HSVhsv(246, 77%, 30%)
CMYKcmyk(68.8%, 76.6%, 0%, 69.8%)
CIE-LABlab(10.28, 23.19, -35.35)
CIE-LCHlch(10.28, 42.28, 303.27°)
OKLaboklab(23.64% 0.0171 -0.1019)
OKLCHoklch(23.64% 0.103 279.5)
XYZxyz(1.9321, 1.1625, 7.1423)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18124D #474D12
analogous
#12294D #18124D #35124D
triadic
#18124D #4D1812 #124D18
tetradic
#18124D #4D1229 #474D12 #124D35
square
#18124D #4D1229 #474D12 #124D35
split-complementary
#18124D #4D3512 #294D12
monochromatic
#080619 #09061B #18124D #271E7F #3729B0

Accessibility & contrast

On white

17.04
#18124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18124D
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18124D#FFFFFF#000000##FFFFFF
##18124D1.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18124d;
/* rgb */ color: rgb(24, 18, 77);
/* oklch */ color: oklch(23.6% 0.103 279.5);
Tailwind
colors: {
  custom: {
    50: '#5d507f',
    500: '#18124d',
    950: '#000000',
  },
}
SCSS
$custom: #18124d;
$custom-light: #5d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#18124d",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 246.102,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23644,
    "c": 0.10338,
    "h": 279.5
  },
  "luminance": 0.01163
}

Semantic roles & 50–950 ramp

primary
#18124D
secondary
#7E8635
accent
#E543D5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18124D

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

Preview Lab → · Contrast checker → · Palette generator →

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