#18226E#18226E

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

Color values

HEX#18226E
RGBrgb(24, 34, 110)
HSLhsl(233, 64%, 26%)
HSVhsv(233, 78%, 43%)
CMYKcmyk(78.2%, 69.1%, 0%, 56.9%)
CIE-LABlab(17.75, 24.91, -45.16)
CIE-LCHlch(17.75, 51.57, 298.88°)
OKLaboklab(30.1% 0.0008 -0.1306)
OKLCHoklch(30.1% 0.131 270.3)
XYZxyz(3.7622, 2.4636, 15.0261)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18226E #6E6418
analogous
#184D6E #18226E #39186E
triadic
#18226E #6E1822 #226E18
tetradic
#18226E #6E184D #6E6418 #186E39
square
#18226E #6E184D #6E6418 #186E39
split-complementary
#18226E #6E3918 #4D6E18
monochromatic
#050819 #0D123C #18226E #2332A0 #2F42D2

Accessibility & contrast

On white

14.07
#18226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18226E
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18226E#FFFFFF#000000##FFFFFF
##18226E1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18226e;
/* rgb */ color: rgb(24, 34, 110);
/* oklch */ color: oklch(30.1% 0.131 270.3);
Tailwind
colors: {
  custom: {
    50: '#645d98',
    500: '#18226e',
    950: '#000000',
  },
}
SCSS
$custom: #18226e;
$custom-light: #645d98;
$custom-dark: #000000;
JSON
{
  "hex": "#18226e",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 233.023,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.1306,
    "h": 270.3
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#18226E
secondary
#A4983E
accent
#D441E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18226E

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

Preview Lab → · Contrast checker → · Palette generator →

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