#18123E#18123E

#18123E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.081 H 283.8°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#18123E
RGBrgb(24, 18, 62)
HSLhsl(248, 55%, 16%)
HSVhsv(248, 71%, 24%)
CMYKcmyk(61.3%, 71%, 0%, 75.7%)
CIE-LABlab(8.78, 17.56, -27.28)
CIE-LCHlch(8.78, 32.44, 302.77°)
OKLaboklab(22.1% 0.0193 -0.0783)
OKLCHoklch(22.1% 0.081 283.8)
XYZxyz(1.4622, 0.9745, 4.6675)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18123E #383E12
analogous
#12223E #18123E #2E123E
triadic
#18123E #3E1812 #123E18
tetradic
#18123E #3E1222 #383E12 #123E2E
square
#18123E #3E1222 #383E12 #123E2E
split-complementary
#18123E #3E2E12 #223E12
monochromatic
#090718 #090718 #18123E #2A206D #3D2E9D

Accessibility & contrast

On white

17.57
#18123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#18123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18123E
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18123E#FFFFFF#000000##FFFFFF
##18123E1.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#00183D
Tritanopia (blue-blind)
#081D25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #18123e;
/* rgb */ color: rgb(24, 18, 62);
/* oklch */ color: oklch(22.1% 0.081 283.8);
Tailwind
colors: {
  custom: {
    50: '#595074',
    500: '#18123e',
    950: '#000000',
  },
}
SCSS
$custom: #18123e;
$custom-light: #595074;
$custom-dark: #000000;
JSON
{
  "hex": "#18123e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 248.182,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22095,
    "c": 0.0806,
    "h": 283.8
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#18123E
secondary
#6E7735
accent
#DE49CA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18123E

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

Preview Lab → · Contrast checker → · Palette generator →

#18123E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva