#18107F#18107F

#18107F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.171 H 271.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#18107F
RGBrgb(24, 16, 127)
HSLhsl(244, 78%, 28%)
HSVhsv(244, 87%, 50%)
CMYKcmyk(81.1%, 87.4%, 0%, 50.2%)
CIE-LABlab(15.99, 41.54, -59.01)
CIE-LCHlch(15.99, 72.17, 305.15°)
OKLaboklab(29.42% 0.0052 -0.1707)
OKLCHoklch(29.42% 0.171 271.7)
XYZxyz(4.3915, 2.0966, 20.2478)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18107F #777F10
analogous
#10407F #18107F #4F107F
triadic
#18107F #7F1810 #107F18
tetradic
#18107F #7F1040 #777F10 #107F4F
square
#18107F #7F1040 #777F10 #107F4F
split-complementary
#18107F #7F4F10 #407F10
monochromatic
#05031B #0E0949 #18107F #2217B5 #3326E4

Accessibility & contrast

On white

14.79
#18107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18107F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18107F#FFFFFF#000000##FFFFFF
##18107F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18107f;
/* rgb */ color: rgb(24, 16, 127);
/* oklch */ color: oklch(29.4% 0.171 271.7);
Tailwind
colors: {
  custom: {
    50: '#6b53a5',
    500: '#18107f',
    950: '#000000',
  },
}
SCSS
$custom: #18107f;
$custom-light: #6b53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18107f",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 244.324,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29423,
    "c": 0.17078,
    "h": 271.7
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#18107F
secondary
#ACB536
accent
#F434E6
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18107F

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

Preview Lab → · Contrast checker → · Palette generator →

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