#18207D#18207D

#18207D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.154 H 270.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#18207D
RGBrgb(24, 32, 125)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(80.8%, 74.4%, 0%, 51%)
CIE-LABlab(18.83, 31.99, -53.02)
CIE-LCHlch(18.83, 61.93, 301.10°)
OKLaboklab(31.35% 0.0002 -0.1536)
OKLCHoklch(31.35% 0.154 270.1)
XYZxyz(4.5936, 2.7074, 19.6785)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207D #7D7518
analogous
#18537D #18207D #43187D
triadic
#18207D #7D1820 #207D18
tetradic
#18207D #7D1853 #7D7518 #187D43
square
#18207D #7D1853 #7D7518 #187D43
split-complementary
#18207D #7D4318 #537D18
monochromatic
#05071A #0E134A #18207D #222DB0 #3744D9

Accessibility & contrast

On white

13.62
#18207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18207D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207D#FFFFFF#000000##FFFFFF
##18207D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18207d;
/* rgb */ color: rgb(24, 32, 125);
/* oklch */ color: oklch(31.4% 0.154 270.1);
Tailwind
colors: {
  custom: {
    50: '#685ca4',
    500: '#18207d',
    950: '#000000',
  },
}
SCSS
$custom: #18207d;
$custom-light: #685ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#18207d",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 235.248,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.15356,
    "h": 270.1
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#18207D
secondary
#B2A83F
accent
#DD3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18207D

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

Preview Lab → · Contrast checker → · Palette generator →

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