#18226D#18226D

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

Color values

HEX#18226D
RGBrgb(24, 34, 109)
HSLhsl(233, 64%, 26%)
HSVhsv(233, 78%, 43%)
CMYKcmyk(78%, 68.8%, 0%, 57.3%)
CIE-LABlab(17.65, 24.52, -44.67)
CIE-LCHlch(17.65, 50.96, 298.76°)
OKLaboklab(29.99% 0.0008 -0.1292)
OKLCHoklch(29.99% 0.129 270.4)
XYZxyz(3.7081, 2.4420, 14.7410)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226D #6D6318
analogous
#184C6D #18226D #38186D
triadic
#18226D #6D1822 #226D18
tetradic
#18226D #6D184C #6D6318 #186D38
square
#18226D #6D184C #6D6318 #186D38
split-complementary
#18226D #6D3818 #4C6D18
monochromatic
#060819 #0D123B #18226D #23329F #2E41D1

Accessibility & contrast

On white

14.11
#18226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#18226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18226D
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226D#FFFFFF#000000##FFFFFF
##18226D1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18226d;
/* rgb */ color: rgb(24, 34, 109);
/* oklch */ color: oklch(30.0% 0.129 270.4);
Tailwind
colors: {
  custom: {
    50: '#645d98',
    500: '#18226d',
    950: '#000000',
  },
}
SCSS
$custom: #18226d;
$custom-light: #645d98;
$custom-dark: #000000;
JSON
{
  "hex": "#18226d",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 232.941,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29994,
    "c": 0.12918,
    "h": 270.4
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18226D

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

Preview Lab → · Contrast checker → · Palette generator →

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