#18226B#18226B

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

Color values

HEX#18226B
RGBrgb(24, 34, 107)
HSLhsl(233, 63%, 26%)
HSVhsv(233, 78%, 42%)
CMYKcmyk(77.6%, 68.2%, 0%, 58%)
CIE-LABlab(17.46, 23.73, -43.69)
CIE-LCHlch(17.46, 49.72, 298.51°)
OKLaboklab(29.79% 0.001 -0.1263)
OKLCHoklch(29.79% 0.126 270.4)
XYZxyz(3.6017, 2.3994, 14.1804)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226B #6B6118
analogous
#184B6B #18226B #37186B
triadic
#18226B #6B1822 #226B18
tetradic
#18226B #6B184B #6B6118 #186B37
square
#18226B #6B184B #6B6118 #186B37
split-complementary
#18226B #6B3718 #4B6B18
monochromatic
#060819 #0D1239 #18226B #23329D #2E42CF

Accessibility & contrast

On white

14.19
#18226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18226B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226B#FFFFFF#000000##FFFFFF
##18226B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18226b;
/* rgb */ color: rgb(24, 34, 107);
/* oklch */ color: oklch(29.8% 0.126 270.4);
Tailwind
colors: {
  custom: {
    50: '#635d96',
    500: '#18226b',
    950: '#000000',
  },
}
SCSS
$custom: #18226b;
$custom-light: #635d96;
$custom-dark: #000000;
JSON
{
  "hex": "#18226b",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 232.771,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2979,
    "c": 0.12631,
    "h": 270.4
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#18226B
secondary
#A1953E
accent
#D341E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18226B

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

Preview Lab → · Contrast checker → · Palette generator →

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