#18127A#18127A

#18127A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.163 H 272.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#18127A
RGBrgb(24, 18, 122)
HSLhsl(243, 74%, 27%)
HSVhsv(243, 85%, 48%)
CMYKcmyk(80.3%, 85.2%, 0%, 52.2%)
CIE-LABlab(15.65, 38.99, -56.37)
CIE-LCHlch(15.65, 68.54, 304.67°)
OKLaboklab(29.01% 0.006 -0.1631)
OKLCHoklch(29.01% 0.163 272.1)
XYZxyz(4.1047, 2.0315, 18.5844)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18127A #747A12
analogous
#12407A #18127A #4C127A
triadic
#18127A #7A1812 #127A18
tetradic
#18127A #7A1240 #747A12 #127A4C
square
#18127A #7A1240 #747A12 #127A4C
split-complementary
#18127A #7A4C12 #407A12
monochromatic
#05041B #0E0A45 #18127A #221AAF #3227DF

Accessibility & contrast

On white

14.93
#18127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18127A
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18127A#FFFFFF#000000##FFFFFF
##18127A1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7D
Deuteranopia (green-blind)
#002278
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18127a;
/* rgb */ color: rgb(24, 18, 122);
/* oklch */ color: oklch(29.0% 0.163 272.1);
Tailwind
colors: {
  custom: {
    50: '#6953a2',
    500: '#18127a',
    950: '#000000',
  },
}
SCSS
$custom: #18127a;
$custom-light: #6953a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18127a",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 243.462,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29005,
    "c": 0.16321,
    "h": 272.1
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18127A

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

Preview Lab → · Contrast checker → · Palette generator →

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