#18227B#18227B

#18227B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.149 H 269.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#18227B
RGBrgb(24, 34, 123)
HSLhsl(234, 67%, 29%)
HSVhsv(234, 80%, 48%)
CMYKcmyk(80.5%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.09, 29.94, -51.32)
CIE-LCHlch(19.09, 59.42, 300.26°)
OKLaboklab(31.47% -0.0005 -0.1486)
OKLCHoklch(31.47% 0.149 269.8)
XYZxyz(4.5226, 2.7678, 19.0309)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227B #7B7118
analogous
#18547B #18227B #40187B
triadic
#18227B #7B1822 #227B18
tetradic
#18227B #7B1854 #7B7118 #187B40
square
#18227B #7B1854 #7B7118 #187B40
split-complementary
#18227B #7B4018 #547B18
monochromatic
#05071A #0E1448 #18227B #2230AE #3646D8

Accessibility & contrast

On white

13.52
#18227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227B
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227B#FFFFFF#000000##FFFFFF
##18227B1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18227b;
/* rgb */ color: rgb(24, 34, 123);
/* oklch */ color: oklch(31.5% 0.149 269.8);
Tailwind
colors: {
  custom: {
    50: '#685da2',
    500: '#18227b',
    950: '#000000',
  },
}
SCSS
$custom: #18227b;
$custom-light: #685da2;
$custom-dark: #000000;
JSON
{
  "hex": "#18227b",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 233.939,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31472,
    "c": 0.14861,
    "h": 269.8
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#18227B
secondary
#B0A43F
accent
#D93EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227B

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

Preview Lab → · Contrast checker → · Palette generator →

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