#18226C#18226C

#18226C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.128 H 270.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#18226C
RGBrgb(24, 34, 108)
HSLhsl(233, 64%, 26%)
HSVhsv(233, 78%, 42%)
CMYKcmyk(77.8%, 68.5%, 0%, 57.6%)
CIE-LABlab(17.56, 24.12, -44.18)
CIE-LCHlch(17.56, 50.34, 298.63°)
OKLaboklab(29.89% 0.0009 -0.1277)
OKLCHoklch(29.89% 0.128 270.4)
XYZxyz(3.6546, 2.4206, 14.4591)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226C #6C6218
analogous
#184C6C #18226C #38186C
triadic
#18226C #6C1822 #226C18
tetradic
#18226C #6C184C #6C6218 #186C38
square
#18226C #6C184C #6C6218 #186C38
split-complementary
#18226C #6C3818 #4C6C18
monochromatic
#060819 #0D123A #18226C #23329E #2E42D0

Accessibility & contrast

On white

14.15
#18226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18226C
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226C#FFFFFF#000000##FFFFFF
##18226C1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18226c;
/* rgb */ color: rgb(24, 34, 108);
/* oklch */ color: oklch(29.9% 0.128 270.4);
Tailwind
colors: {
  custom: {
    50: '#635d97',
    500: '#18226c',
    950: '#000000',
  },
}
SCSS
$custom: #18226c;
$custom-light: #635d97;
$custom-dark: #000000;
JSON
{
  "hex": "#18226c",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 232.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29892,
    "c": 0.12775,
    "h": 270.4
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#18226C
secondary
#A2963E
accent
#D341E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18226C

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

Preview Lab → · Contrast checker → · Palette generator →

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