#18126C#18126C

#18126C is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.146 H 273.8°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#18126C
RGBrgb(24, 18, 108)
HSLhsl(244, 71%, 25%)
HSVhsv(244, 83%, 42%)
CMYKcmyk(77.8%, 83.3%, 0%, 57.6%)
CIE-LABlab(13.88, 34.30, -50.24)
CIE-LCHlch(13.88, 60.83, 304.32°)
OKLaboklab(27.26% 0.0097 -0.1453)
OKLCHoklch(27.26% 0.146 273.8)
XYZxyz(3.2989, 1.7092, 14.3405)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18126C #666C12
analogous
#12396C #18126C #45126C
triadic
#18126C #6C1812 #126C18
tetradic
#18126C #6C1239 #666C12 #126C45
square
#18126C #6C1239 #666C12 #126C45
split-complementary
#18126C #6C4512 #396C12
monochromatic
#06041A #0C0938 #18126C #241BA0 #2F23D5

Accessibility & contrast

On white

15.65
#18126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#18126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18126C
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18126C#FFFFFF#000000##FFFFFF
##18126C1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276E
Deuteranopia (green-blind)
#001F6A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18126c;
/* rgb */ color: rgb(24, 18, 108);
/* oklch */ color: oklch(27.3% 0.146 273.8);
Tailwind
colors: {
  custom: {
    50: '#655297',
    500: '#18126c',
    950: '#000000',
  },
}
SCSS
$custom: #18126c;
$custom-light: #655297;
$custom-dark: #000000;
JSON
{
  "hex": "#18126c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 244,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27262,
    "c": 0.14565,
    "h": 273.8
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#18126C
secondary
#9CA336
accent
#EE3AE2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #18126C

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

Preview Lab → · Contrast checker → · Palette generator →

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