#18128E#18128E

#18128E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.187 H 270.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#18128E
RGBrgb(24, 18, 142)
HSLhsl(243, 78%, 31%)
HSVhsv(243, 87%, 56%)
CMYKcmyk(83.1%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.27, 45.36, -64.66)
CIE-LCHlch(18.27, 78.98, 305.05°)
OKLaboklab(31.56% 0.0009 -0.1871)
OKLCHoklch(31.56% 0.187 270.3)
XYZxyz(5.4738, 2.5792, 25.7953)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18128E #888E12
analogous
#124A8E #18128E #56128E
triadic
#18128E #8E1812 #128E18
tetradic
#18128E #8E124A #888E12 #128E56
square
#18128E #8E124A #888E12 #128E56
split-complementary
#18128E #8E5612 #4A8E12
monochromatic
#060421 #0F0B58 #18128E #2119C4 #3E35E5

Accessibility & contrast

On white

13.85
#18128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#18128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18128E
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18128E#FFFFFF#000000##FFFFFF
##18128E1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18128e;
/* rgb */ color: rgb(24, 18, 142);
/* oklch */ color: oklch(31.6% 0.187 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e55b0',
    500: '#18128e',
    950: '#000000',
  },
}
SCSS
$custom: #18128e;
$custom-light: #6e55b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18128e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 242.903,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31558,
    "c": 0.18709,
    "h": 270.3
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#18128E
secondary
#BCC23A
accent
#F434EB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18128E

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

Preview Lab → · Contrast checker → · Palette generator →

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