#18126F#18126F

#18126F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.149 H 273.4°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#18126F
RGBrgb(24, 18, 111)
HSLhsl(244, 72%, 25%)
HSVhsv(244, 84%, 44%)
CMYKcmyk(78.4%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.25, 35.33, -51.58)
CIE-LCHlch(14.25, 62.52, 304.41°)
OKLaboklab(27.63% 0.0089 -0.1492)
OKLCHoklch(27.63% 0.149 273.4)
XYZxyz(3.4613, 1.7741, 15.1959)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18126F #696F12
analogous
#123A6F #18126F #46126F
triadic
#18126F #6F1812 #126F18
tetradic
#18126F #6F123A #696F12 #126F46
square
#18126F #6F123A #696F12 #126F46
split-complementary
#18126F #6F4612 #3A6F12
monochromatic
#06041A #0D093A #18126F #231BA4 #2F23D8

Accessibility & contrast

On white

15.50
#18126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18126F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18126F#FFFFFF#000000##FFFFFF
##18126F1.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002872
Deuteranopia (green-blind)
#00206D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18126f;
/* rgb */ color: rgb(24, 18, 111);
/* oklch */ color: oklch(27.6% 0.149 273.4);
Tailwind
colors: {
  custom: {
    50: '#665299',
    500: '#18126f',
    950: '#000000',
  },
}
SCSS
$custom: #18126f;
$custom-light: #665299;
$custom-dark: #000000;
JSON
{
  "hex": "#18126f",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 243.871,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27631,
    "c": 0.14949,
    "h": 273.4
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18126F

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

Preview Lab → · Contrast checker → · Palette generator →

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