#18126E#18126E

#18126E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.5% C 0.148 H 273.6°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#18126E
RGBrgb(24, 18, 110)
HSLhsl(244, 72%, 25%)
HSVhsv(244, 84%, 43%)
CMYKcmyk(78.2%, 83.6%, 0%, 56.9%)
CIE-LABlab(14.13, 34.98, -51.13)
CIE-LCHlch(14.13, 61.96, 304.38°)
OKLaboklab(27.51% 0.0092 -0.1479)
OKLCHoklch(27.51% 0.148 273.6)
XYZxyz(3.4065, 1.7522, 14.9075)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18126E #686E12
analogous
#123A6E #18126E #46126E
triadic
#18126E #6E1812 #126E18
tetradic
#18126E #6E123A #686E12 #126E46
square
#18126E #6E123A #686E12 #126E46
split-complementary
#18126E #6E4612 #3A6E12
monochromatic
#06041A #0D0939 #18126E #231BA3 #2F23D7

Accessibility & contrast

On white

15.55
#18126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18126E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18126E#FFFFFF#000000##FFFFFF
##18126E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#001F6C
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18126e;
/* rgb */ color: rgb(24, 18, 110);
/* oklch */ color: oklch(27.5% 0.148 273.6);
Tailwind
colors: {
  custom: {
    50: '#665299',
    500: '#18126e',
    950: '#000000',
  },
}
SCSS
$custom: #18126e;
$custom-light: #665299;
$custom-dark: #000000;
JSON
{
  "hex": "#18126e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 243.913,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27508,
    "c": 0.14821,
    "h": 273.6
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#18126E
secondary
#9EA537
accent
#EF39E3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #18126E

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

Preview Lab → · Contrast checker → · Palette generator →

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