#18227E#18227E

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

Color values

HEX#18227E
RGBrgb(24, 34, 126)
HSLhsl(234, 68%, 29%)
HSVhsv(234, 81%, 49%)
CMYKcmyk(81%, 73%, 0%, 50.6%)
CIE-LABlab(19.41, 31.07, -52.71)
CIE-LCHlch(19.41, 61.18, 300.52°)
OKLaboklab(31.8% -0.0009 -0.1526)
OKLCHoklch(31.8% 0.153 269.7)
XYZxyz(4.7133, 2.8441, 20.0352)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227E #7E7418
analogous
#18557E #18227E #41187E
triadic
#18227E #7E1822 #227E18
tetradic
#18227E #7E1855 #7E7418 #187E41
square
#18227E #7E1855 #7E7418 #187E41
split-complementary
#18227E #7E4118 #557E18
monochromatic
#05071A #0E144B #18227E #2230B1 #3747D9

Accessibility & contrast

On white

13.38
#18227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227E#FFFFFF#000000##FFFFFF
##18227E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18227e;
/* rgb */ color: rgb(24, 34, 126);
/* oklch */ color: oklch(31.8% 0.153 269.7);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#18227e',
    950: '#000000',
  },
}
SCSS
$custom: #18227e;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#18227e",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 234.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31799,
    "c": 0.15264,
    "h": 269.7
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#18227E
secondary
#B2A73F
accent
#DA3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227E

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

Preview Lab → · Contrast checker → · Palette generator →

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