#18227D#18227D

#18227D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.151 H 269.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#18227D
RGBrgb(24, 34, 125)
HSLhsl(234, 68%, 29%)
HSVhsv(234, 81%, 49%)
CMYKcmyk(80.8%, 72.8%, 0%, 51%)
CIE-LABlab(19.30, 30.70, -52.25)
CIE-LCHlch(19.30, 60.60, 300.44°)
OKLaboklab(31.69% -0.0007 -0.1513)
OKLCHoklch(31.69% 0.151 269.7)
XYZxyz(4.6491, 2.8184, 19.6970)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227D #7D7318
analogous
#18557D #18227D #41187D
triadic
#18227D #7D1822 #227D18
tetradic
#18227D #7D1855 #7D7318 #187D41
square
#18227D #7D1855 #7D7318 #187D41
split-complementary
#18227D #7D4118 #557D18
monochromatic
#05071A #0E144A #18227D #2230B0 #3747D9

Accessibility & contrast

On white

13.43
#18227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227D#FFFFFF#000000##FFFFFF
##18227D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18227d;
/* rgb */ color: rgb(24, 34, 125);
/* oklch */ color: oklch(31.7% 0.151 269.7);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#18227d',
    950: '#000000',
  },
}
SCSS
$custom: #18227d;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#18227d",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 234.059,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3169,
    "c": 0.1513,
    "h": 269.7
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#18227D
secondary
#B2A63F
accent
#D93DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227D

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

Preview Lab → · Contrast checker → · Palette generator →

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