#18207A#18207A

#18207A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.150 H 270.2°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#18207A
RGBrgb(24, 32, 122)
HSLhsl(235, 67%, 29%)
HSVhsv(235, 80%, 48%)
CMYKcmyk(80.3%, 73.8%, 0%, 52.2%)
CIE-LABlab(18.50, 30.87, -51.65)
CIE-LCHlch(18.50, 60.17, 300.87°)
OKLaboklab(31.02% 0.0006 -0.1496)
OKLCHoklch(31.02% 0.15 270.2)
XYZxyz(4.4049, 2.6319, 18.6844)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207A #7A7218
analogous
#18517A #18207A #41187A
triadic
#18207A #7A1820 #207A18
tetradic
#18207A #7A1851 #7A7218 #187A41
square
#18207A #7A1851 #7A7218 #187A41
split-complementary
#18207A #7A4118 #517A18
monochromatic
#05071A #0E1347 #18207A #222DAD #3542D7

Accessibility & contrast

On white

13.76
#18207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18207A
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207A#FFFFFF#000000##FFFFFF
##18207A1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18207a;
/* rgb */ color: rgb(24, 32, 122);
/* oklch */ color: oklch(31.0% 0.150 270.2);
Tailwind
colors: {
  custom: {
    50: '#685ca1',
    500: '#18207a',
    950: '#000000',
  },
}
SCSS
$custom: #18207a;
$custom-light: #685ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#18207a",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 235.102,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31019,
    "c": 0.14956,
    "h": 270.2
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#18207A
secondary
#AFA63F
accent
#DC3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18207A

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

Preview Lab → · Contrast checker → · Palette generator →

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