#18126A#18126A

#18126A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.143 H 274.1°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#18126A
RGBrgb(24, 18, 106)
HSLhsl(244, 71%, 24%)
HSVhsv(244, 83%, 42%)
CMYKcmyk(77.4%, 83%, 0%, 58.4%)
CIE-LABlab(13.63, 33.62, -49.34)
CIE-LCHlch(13.63, 59.70, 304.27°)
OKLaboklab(27.02% 0.0102 -0.1427)
OKLCHoklch(27.02% 0.143 274.1)
XYZxyz(3.1937, 1.6671, 13.7863)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18126A #646A12
analogous
#12386A #18126A #44126A
triadic
#18126A #6A1812 #126A18
tetradic
#18126A #6A1238 #646A12 #126A44
square
#18126A #6A1238 #646A12 #126A44
split-complementary
#18126A #6A4412 #386A12
monochromatic
#06041A #0C0936 #18126A #241B9E #3024D3

Accessibility & contrast

On white

15.75
#18126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#18126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18126A
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18126A#FFFFFF#000000##FFFFFF
##18126A1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#001F68
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18126a;
/* rgb */ color: rgb(24, 18, 106);
/* oklch */ color: oklch(27.0% 0.143 274.1);
Tailwind
colors: {
  custom: {
    50: '#655296',
    500: '#18126a',
    950: '#000000',
  },
}
SCSS
$custom: #18126a;
$custom-light: #655296;
$custom-dark: #000000;
JSON
{
  "hex": "#18126a",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 244.091,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.14308,
    "h": 274.1
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#18126A
secondary
#9AA236
accent
#EE3AE1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #18126A

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

Preview Lab → · Contrast checker → · Palette generator →

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