#18207F#18207F

#18207F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.156 H 270.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#18207F
RGBrgb(24, 32, 127)
HSLhsl(235, 68%, 30%)
HSVhsv(235, 81%, 50%)
CMYKcmyk(81.1%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.05, 32.73, -53.93)
CIE-LCHlch(19.05, 63.09, 301.26°)
OKLaboklab(31.57% -0.0001 -0.1562)
OKLCHoklch(31.57% 0.156 270)
XYZxyz(4.7227, 2.7590, 20.3582)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18207F #7F7718
analogous
#18547F #18207F #44187F
triadic
#18207F #7F1820 #207F18
tetradic
#18207F #7F1854 #7F7718 #187F44
square
#18207F #7F1854 #7F7718 #187F44
split-complementary
#18207F #7F4418 #547F18
monochromatic
#05061A #0E134C #18207F #222DB2 #3845D9

Accessibility & contrast

On white

13.53
#18207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18207F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18207F#FFFFFF#000000##FFFFFF
##18207F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18207f;
/* rgb */ color: rgb(24, 32, 127);
/* oklch */ color: oklch(31.6% 0.156 270.0);
Tailwind
colors: {
  custom: {
    50: '#695ca5',
    500: '#18207f',
    950: '#000000',
  },
}
SCSS
$custom: #18207f;
$custom-light: #695ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#18207f",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 235.34,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31575,
    "c": 0.1562,
    "h": 270
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#18207F
secondary
#B3AA3F
accent
#DE3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18207F

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

Preview Lab → · Contrast checker → · Palette generator →

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