#18127D#18127D

#18127D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.167 H 271.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#18127D
RGBrgb(24, 18, 125)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 86%, 49%)
CMYKcmyk(80.8%, 85.6%, 0%, 51%)
CIE-LABlab(16.04, 39.97, -57.65)
CIE-LCHlch(16.04, 70.15, 304.74°)
OKLaboklab(29.38% 0.0052 -0.1668)
OKLCHoklch(29.38% 0.167 271.8)
XYZxyz(4.2934, 2.1070, 19.5785)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127D #777D12
analogous
#12427D #18127D #4D127D
triadic
#18127D #7D1812 #127D18
tetradic
#18127D #7D1242 #777D12 #127D4D
square
#18127D #7D1242 #777D12 #127D4D
split-complementary
#18127D #7D4D12 #427D12
monochromatic
#05041B #0E0A48 #18127D #221AB2 #3329E0

Accessibility & contrast

On white

14.77
#18127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18127D
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127D#FFFFFF#000000##FFFFFF
##18127D1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00227B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18127d;
/* rgb */ color: rgb(24, 18, 125);
/* oklch */ color: oklch(29.4% 0.167 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a54a4',
    500: '#18127d',
    950: '#000000',
  },
}
SCSS
$custom: #18127d;
$custom-light: #6a54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18127d",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 243.364,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29384,
    "c": 0.16687,
    "h": 271.8
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#18127D
secondary
#ACB338
accent
#F136E7
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18127D

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

Preview Lab → · Contrast checker → · Palette generator →

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