#18127F#18127F

#18127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.169 H 271.6°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#18127F
RGBrgb(24, 18, 127)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 86%, 50%)
CMYKcmyk(81.1%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.30, 40.62, -58.49)
CIE-LCHlch(16.30, 71.21, 304.78°)
OKLaboklab(29.64% 0.0047 -0.1692)
OKLCHoklch(29.64% 0.169 271.6)
XYZxyz(4.4225, 2.1586, 20.2581)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127F #797F12
analogous
#12427F #18127F #4E127F
triadic
#18127F #7F1812 #127F18
tetradic
#18127F #7F1242 #797F12 #127F4E
square
#18127F #7F1242 #797F12 #127F4E
split-complementary
#18127F #7F4E12 #427F12
monochromatic
#05041B #0E0A49 #18127F #221AB5 #352BE1

Accessibility & contrast

On white

14.67
#18127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18127F
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127F#FFFFFF#000000##FFFFFF
##18127F1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18127f;
/* rgb */ color: rgb(24, 18, 127);
/* oklch */ color: oklch(29.6% 0.169 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#18127f',
    950: '#000000',
  },
}
SCSS
$custom: #18127f;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18127f",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 243.303,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29638,
    "c": 0.16931,
    "h": 271.6
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#18127F
secondary
#AEB538
accent
#F236E7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18127F

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

Preview Lab → · Contrast checker → · Palette generator →

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