#18207C#18207C

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

Color values

HEX#18207C
RGBrgb(24, 32, 124)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(80.6%, 74.2%, 0%, 51.4%)
CIE-LABlab(18.72, 31.62, -52.57)
CIE-LCHlch(18.72, 61.34, 301.03°)
OKLaboklab(31.24% 0.0004 -0.1522)
OKLCHoklch(31.24% 0.152 270.1)
XYZxyz(4.5300, 2.6819, 19.3438)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207C #7C7418
analogous
#18527C #18207C #42187C
triadic
#18207C #7C1820 #207C18
tetradic
#18207C #7C1852 #7C7418 #187C42
square
#18207C #7C1852 #7C7418 #187C42
split-complementary
#18207C #7C4218 #527C18
monochromatic
#05071A #0E1349 #18207C #222DAF #3643D8

Accessibility & contrast

On white

13.67
#18207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18207C
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207C#FFFFFF#000000##FFFFFF
##18207C1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18207c;
/* rgb */ color: rgb(24, 32, 124);
/* oklch */ color: oklch(31.2% 0.152 270.1);
Tailwind
colors: {
  custom: {
    50: '#685ca3',
    500: '#18207c',
    950: '#000000',
  },
}
SCSS
$custom: #18207c;
$custom-light: #685ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#18207c",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 235.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31241,
    "c": 0.15223,
    "h": 270.1
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#18207C
secondary
#B1A83F
accent
#DD3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18207C

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

Preview Lab → · Contrast checker → · Palette generator →

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