#18127B#18127B

#18127B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.164 H 272.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#18127B
RGBrgb(24, 18, 123)
HSLhsl(243, 74%, 28%)
HSVhsv(243, 85%, 48%)
CMYKcmyk(80.5%, 85.4%, 0%, 51.8%)
CIE-LABlab(15.78, 39.32, -56.80)
CIE-LCHlch(15.78, 69.08, 304.69°)
OKLaboklab(29.13% 0.0058 -0.1643)
OKLCHoklch(29.13% 0.164 272)
XYZxyz(4.1669, 2.0564, 18.9124)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127B #757B12
analogous
#12407B #18127B #4D127B
triadic
#18127B #7B1812 #127B18
tetradic
#18127B #7B1240 #757B12 #127B4D
square
#18127B #7B1240 #757B12 #127B4D
split-complementary
#18127B #7B4D12 #407B12
monochromatic
#05041B #0E0A46 #18127B #221AB0 #3228E0

Accessibility & contrast

On white

14.88
#18127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18127B
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127B#FFFFFF#000000##FFFFFF
##18127B1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7E
Deuteranopia (green-blind)
#002279
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18127b;
/* rgb */ color: rgb(24, 18, 123);
/* oklch */ color: oklch(29.1% 0.164 272.0);
Tailwind
colors: {
  custom: {
    50: '#6953a2',
    500: '#18127b',
    950: '#000000',
  },
}
SCSS
$custom: #18127b;
$custom-light: #6953a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18127b",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 243.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29131,
    "c": 0.16444,
    "h": 272
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#18127B
secondary
#AAB138
accent
#F137E6
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18127B

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

Preview Lab → · Contrast checker → · Palette generator →

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