#18226F#18226F

#18226F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.132 H 270.3°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#18226F
RGBrgb(24, 34, 111)
HSLhsl(233, 64%, 26%)
HSVhsv(233, 78%, 44%)
CMYKcmyk(78.4%, 69.4%, 0%, 56.5%)
CIE-LABlab(17.85, 25.31, -45.64)
CIE-LCHlch(17.85, 52.19, 299.01°)
OKLaboklab(30.2% 0.0007 -0.132)
OKLCHoklch(30.2% 0.132 270.3)
XYZxyz(3.8170, 2.4855, 15.3144)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226F #6F6518
analogous
#184E6F #18226F #3A186F
triadic
#18226F #6F1822 #226F18
tetradic
#18226F #6F184E #6F6518 #186F3A
square
#18226F #6F184E #6F6518 #186F3A
split-complementary
#18226F #6F3A18 #4E6F18
monochromatic
#050819 #0D133D #18226F #2331A1 #2F42D2

Accessibility & contrast

On white

14.03
#18226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#18226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18226F
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226F#FFFFFF#000000##FFFFFF
##18226F1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18226f;
/* rgb */ color: rgb(24, 34, 111);
/* oklch */ color: oklch(30.2% 0.132 270.3);
Tailwind
colors: {
  custom: {
    50: '#645d99',
    500: '#18226f',
    950: '#000000',
  },
}
SCSS
$custom: #18226f;
$custom-light: #645d99;
$custom-dark: #000000;
JSON
{
  "hex": "#18226f",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 233.103,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30201,
    "c": 0.13202,
    "h": 270.3
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#18226F
secondary
#A5993E
accent
#D440E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18226F

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

Preview Lab → · Contrast checker → · Palette generator →

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