#18107B#18107B

#18107B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.9% C 0.166 H 272.2°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#18107B
RGBrgb(24, 16, 123)
HSLhsl(244, 77%, 27%)
HSVhsv(244, 87%, 48%)
CMYKcmyk(80.5%, 87%, 0%, 51.8%)
CIE-LABlab(15.46, 40.27, -57.33)
CIE-LCHlch(15.46, 70.06, 305.09°)
OKLaboklab(28.91% 0.0063 -0.1658)
OKLCHoklch(28.91% 0.166 272.2)
XYZxyz(4.1359, 1.9944, 18.9020)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18107B #737B10
analogous
#103E7B #18107B #4E107B
triadic
#18107B #7B1810 #107B18
tetradic
#18107B #7B103E #737B10 #107B4E
square
#18107B #7B103E #737B10 #107B4E
split-complementary
#18107B #7B4E10 #3E7B10
monochromatic
#05041B #0D0945 #18107B #2317B1 #3123E2

Accessibility & contrast

On white

15.01
#18107B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#18107B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18107B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18107B#FFFFFF#000000##FFFFFF
##18107B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18107b;
/* rgb */ color: rgb(24, 16, 123);
/* oklch */ color: oklch(28.9% 0.166 272.2);
Tailwind
colors: {
  custom: {
    50: '#6952a2',
    500: '#18107b',
    950: '#000000',
  },
}
SCSS
$custom: #18107b;
$custom-light: #6952a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18107b",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 123
  },
  "hsl": {
    "h": 244.486,
    "s": 76.978,
    "l": 27.255
  },
  "oklch": {
    "l": 0.28909,
    "c": 0.16597,
    "h": 272.2
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#18107B
secondary
#A8B235
accent
#F434E5
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08020F
muted
#7A787F

Preview Lab

Preview with #18107B

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

Preview Lab → · Contrast checker → · Palette generator →

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