#18207B#18207B

#18207B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.151 H 270.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#18207B
RGBrgb(24, 32, 123)
HSLhsl(235, 67%, 29%)
HSVhsv(235, 80%, 48%)
CMYKcmyk(80.5%, 74%, 0%, 51.8%)
CIE-LABlab(18.61, 31.24, -52.11)
CIE-LCHlch(18.61, 60.76, 300.95°)
OKLaboklab(31.13% 0.0005 -0.1509)
OKLCHoklch(31.13% 0.151 270.2)
XYZxyz(4.4671, 2.6568, 19.0124)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207B #7B7318
analogous
#18527B #18207B #42187B
triadic
#18207B #7B1820 #207B18
tetradic
#18207B #7B1852 #7B7318 #187B42
square
#18207B #7B1852 #7B7318 #187B42
split-complementary
#18207B #7B4218 #527B18
monochromatic
#05071A #0E1348 #18207B #222DAE #3643D8

Accessibility & contrast

On white

13.71
#18207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18207B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207B#FFFFFF#000000##FFFFFF
##18207B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18207b;
/* rgb */ color: rgb(24, 32, 123);
/* oklch */ color: oklch(31.1% 0.151 270.2);
Tailwind
colors: {
  custom: {
    50: '#685ca2',
    500: '#18207b',
    950: '#000000',
  },
}
SCSS
$custom: #18207b;
$custom-light: #685ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#18207b",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 235.152,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3113,
    "c": 0.15089,
    "h": 270.2
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18207B

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

Preview Lab → · Contrast checker → · Palette generator →

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