#18227A#18227A

#18227A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.147 H 269.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#18227A
RGBrgb(24, 34, 122)
HSLhsl(234, 67%, 29%)
HSVhsv(234, 80%, 48%)
CMYKcmyk(80.3%, 72.1%, 0%, 52.2%)
CIE-LABlab(18.98, 29.56, -50.86)
CIE-LCHlch(18.98, 58.83, 300.16°)
OKLaboklab(31.36% -0.0004 -0.1473)
OKLCHoklch(31.36% 0.147 269.8)
XYZxyz(4.4604, 2.7429, 18.7029)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227A #7A7018
analogous
#18537A #18227A #3F187A
triadic
#18227A #7A1822 #227A18
tetradic
#18227A #7A1853 #7A7018 #187A3F
square
#18227A #7A1853 #7A7018 #187A3F
split-complementary
#18227A #7A3F18 #537A18
monochromatic
#05071A #0E1447 #18227A #2230AD #3546D7

Accessibility & contrast

On white

13.56
#18227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227A#FFFFFF#000000##FFFFFF
##18227A1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18227a;
/* rgb */ color: rgb(24, 34, 122);
/* oklch */ color: oklch(31.4% 0.147 269.8);
Tailwind
colors: {
  custom: {
    50: '#675da1',
    500: '#18227a',
    950: '#000000',
  },
}
SCSS
$custom: #18227a;
$custom-light: #675da1;
$custom-dark: #000000;
JSON
{
  "hex": "#18227a",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 233.878,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31364,
    "c": 0.14726,
    "h": 269.8
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#18227A
secondary
#AFA33F
accent
#D83EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227A

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

Preview Lab → · Contrast checker → · Palette generator →

#18227A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva