#18126D#18126D

#18126D is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.147 H 273.7°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#18126D
RGBrgb(24, 18, 109)
HSLhsl(244, 72%, 25%)
HSVhsv(244, 83%, 43%)
CMYKcmyk(78%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.00, 34.64, -50.69)
CIE-LCHlch(14.00, 61.40, 304.35°)
OKLaboklab(27.39% 0.0094 -0.1466)
OKLCHoklch(27.39% 0.147 273.7)
XYZxyz(3.3524, 1.7306, 14.6224)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18126D #676D12
analogous
#123A6D #18126D #46126D
triadic
#18126D #6D1812 #126D18
tetradic
#18126D #6D123A #676D12 #126D46
square
#18126D #6D123A #676D12 #126D46
split-complementary
#18126D #6D4612 #3A6D12
monochromatic
#06041A #0C0938 #18126D #241BA2 #2F23D6

Accessibility & contrast

On white

15.60
#18126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#18126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18126D
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18126D#FFFFFF#000000##FFFFFF
##18126D1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#001F6B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18126d;
/* rgb */ color: rgb(24, 18, 109);
/* oklch */ color: oklch(27.4% 0.147 273.7);
Tailwind
colors: {
  custom: {
    50: '#655298',
    500: '#18126d',
    950: '#000000',
  },
}
SCSS
$custom: #18126d;
$custom-light: #655298;
$custom-dark: #000000;
JSON
{
  "hex": "#18126d",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 243.956,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27385,
    "c": 0.14693,
    "h": 273.7
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#18126D
secondary
#9DA437
accent
#EE39E2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #18126D

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

Preview Lab → · Contrast checker → · Palette generator →

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