#18147B#18147B

#18147B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.163 H 271.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#18147B
RGBrgb(24, 20, 123)
HSLhsl(242, 72%, 28%)
HSVhsv(242, 84%, 48%)
CMYKcmyk(80.5%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.13, 38.31, -56.22)
CIE-LCHlch(16.13, 68.03, 304.27°)
OKLaboklab(29.37% 0.0052 -0.1627)
OKLCHoklch(29.37% 0.163 271.8)
XYZxyz(4.2008, 2.1241, 18.9236)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18147B #777B14
analogous
#14437B #18147B #4B147B
triadic
#18147B #7B1814 #147B18
tetradic
#18147B #7B1443 #777B14 #147B4B
square
#18147B #7B1443 #777B14 #147B4B
split-complementary
#18147B #7B4B14 #437B14
monochromatic
#05041A #0E0B46 #18147B #221DB0 #332DDD

Accessibility & contrast

On white

14.74
#18147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18147B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18147B#FFFFFF#000000##FFFFFF
##18147B1.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002379
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18147b;
/* rgb */ color: rgb(24, 20, 123);
/* oklch */ color: oklch(29.4% 0.163 271.8);
Tailwind
colors: {
  custom: {
    50: '#6954a2',
    500: '#18147b',
    950: '#000000',
  },
}
SCSS
$custom: #18147b;
$custom-light: #6954a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18147b",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 242.33,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29371,
    "c": 0.1628,
    "h": 271.8
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#18147B
secondary
#ACB13A
accent
#EF39E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18147B

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

Preview Lab → · Contrast checker → · Palette generator →

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