#18127C#18127C

#18127C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.166 H 271.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#18127C
RGBrgb(24, 18, 124)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 85%, 49%)
CMYKcmyk(80.6%, 85.5%, 0%, 51.4%)
CIE-LABlab(15.91, 39.65, -57.22)
CIE-LCHlch(15.91, 69.61, 304.72°)
OKLaboklab(29.26% 0.0055 -0.1656)
OKLCHoklch(29.26% 0.166 271.9)
XYZxyz(4.2299, 2.0816, 19.2437)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127C #767C12
analogous
#12417C #18127C #4D127C
triadic
#18127C #7C1812 #127C18
tetradic
#18127C #7C1241 #767C12 #127C4D
square
#18127C #7C1241 #767C12 #127C4D
split-complementary
#18127C #7C4D12 #417C12
monochromatic
#05041B #0E0A47 #18127C #221AB1 #3329E0

Accessibility & contrast

On white

14.83
#18127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18127C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127C#FFFFFF#000000##FFFFFF
##18127C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00227A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18127c;
/* rgb */ color: rgb(24, 18, 124);
/* oklch */ color: oklch(29.3% 0.166 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a53a3',
    500: '#18127c',
    950: '#000000',
  },
}
SCSS
$custom: #18127c;
$custom-light: #6a53a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18127c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 243.396,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29258,
    "c": 0.16566,
    "h": 271.9
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#18127C
secondary
#ABB238
accent
#F137E7
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18127C

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

Preview Lab → · Contrast checker → · Palette generator →

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