#18226A#18226A

#18226A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.125 H 270.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#18226A
RGBrgb(24, 34, 106)
HSLhsl(233, 63%, 25%)
HSVhsv(233, 77%, 42%)
CMYKcmyk(77.4%, 67.9%, 0%, 58.4%)
CIE-LABlab(17.36, 23.33, -43.20)
CIE-LCHlch(17.36, 49.10, 298.37°)
OKLaboklab(29.69% 0.001 -0.1249)
OKLCHoklch(29.69% 0.125 270.5)
XYZxyz(3.5493, 2.3785, 13.9049)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226A #6A6018
analogous
#184B6A #18226A #37186A
triadic
#18226A #6A1822 #226A18
tetradic
#18226A #6A184B #6A6018 #186A37
square
#18226A #6A184B #6A6018 #186A37
split-complementary
#18226A #6A3718 #4B6A18
monochromatic
#060819 #0D1238 #18226A #23329C #2F42CE

Accessibility & contrast

On white

14.23
#18226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#18226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18226A
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226A#FFFFFF#000000##FFFFFF
##18226A1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18226a;
/* rgb */ color: rgb(24, 34, 106);
/* oklch */ color: oklch(29.7% 0.125 270.5);
Tailwind
colors: {
  custom: {
    50: '#635d95',
    500: '#18226a',
    950: '#000000',
  },
}
SCSS
$custom: #18226a;
$custom-light: #635d95;
$custom-dark: #000000;
JSON
{
  "hex": "#18226a",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 232.683,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.12487,
    "h": 270.5
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#18226A
secondary
#A0943E
accent
#D242E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18226A

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

Preview Lab → · Contrast checker → · Palette generator →

#18226A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva