#18127E#18127E

#18127E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.168 H 271.7°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#18127E
RGBrgb(24, 18, 126)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 86%, 49%)
CMYKcmyk(81%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.17, 40.29, -58.07)
CIE-LCHlch(16.17, 70.68, 304.76°)
OKLaboklab(29.51% 0.005 -0.168)
OKLCHoklch(29.51% 0.168 271.7)
XYZxyz(4.3576, 2.1327, 19.9166)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127E #787E12
analogous
#12427E #18127E #4E127E
triadic
#18127E #7E1812 #127E18
tetradic
#18127E #7E1242 #787E12 #127E4E
square
#18127E #7E1242 #787E12 #127E4E
split-complementary
#18127E #7E4E12 #427E12
monochromatic
#05041B #0E0A48 #18127E #221AB4 #342AE1

Accessibility & contrast

On white

14.72
#18127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18127E
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127E#FFFFFF#000000##FFFFFF
##18127E1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18127e;
/* rgb */ color: rgb(24, 18, 126);
/* oklch */ color: oklch(29.5% 0.168 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#18127e',
    950: '#000000',
  },
}
SCSS
$custom: #18127e;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18127e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 243.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29511,
    "c": 0.16809,
    "h": 271.7
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#18127E
secondary
#ADB438
accent
#F236E7
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18127E

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

Preview Lab → · Contrast checker → · Palette generator →

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