#18207E#18207E

#18207E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.155 H 270.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#18207E
RGBrgb(24, 32, 126)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(81%, 74.6%, 0%, 50.6%)
CIE-LABlab(18.94, 32.36, -53.48)
CIE-LCHlch(18.94, 62.51, 301.18°)
OKLaboklab(31.46% 0.0001 -0.1549)
OKLCHoklch(31.46% 0.155 270)
XYZxyz(4.6578, 2.7330, 20.0167)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207E #7E7618
analogous
#18537E #18207E #43187E
triadic
#18207E #7E1820 #207E18
tetradic
#18207E #7E1853 #7E7618 #187E43
square
#18207E #7E1853 #7E7618 #187E43
split-complementary
#18207E #7E4318 #537E18
monochromatic
#05071A #0E134B #18207E #222DB1 #3744D9

Accessibility & contrast

On white

13.58
#18207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18207E
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207E#FFFFFF#000000##FFFFFF
##18207E1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18207e;
/* rgb */ color: rgb(24, 32, 126);
/* oklch */ color: oklch(31.5% 0.155 270.0);
Tailwind
colors: {
  custom: {
    50: '#695ca4',
    500: '#18207e',
    950: '#000000',
  },
}
SCSS
$custom: #18207e;
$custom-light: #695ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#18207e",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 235.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31463,
    "c": 0.15488,
    "h": 270
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18207E

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

Preview Lab → · Contrast checker → · Palette generator →

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