#18227F#18227F

#18227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 269.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#18227F
RGBrgb(24, 34, 127)
HSLhsl(234, 68%, 30%)
HSVhsv(234, 81%, 50%)
CMYKcmyk(81.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.52, 31.45, -53.16)
CIE-LCHlch(19.52, 61.77, 300.61°)
OKLaboklab(31.91% -0.001 -0.154)
OKLCHoklch(31.91% 0.154 269.6)
XYZxyz(4.7782, 2.8700, 20.3767)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227F #7F7518
analogous
#18567F #18227F #42187F
triadic
#18227F #7F1822 #227F18
tetradic
#18227F #7F1856 #7F7518 #187F42
square
#18227F #7F1856 #7F7518 #187F42
split-complementary
#18227F #7F4218 #567F18
monochromatic
#05071A #0E144C #18227F #2230B2 #3848D9

Accessibility & contrast

On white

13.34
#18227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227F#FFFFFF#000000##FFFFFF
##18227F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18227f;
/* rgb */ color: rgb(24, 34, 127);
/* oklch */ color: oklch(31.9% 0.154 269.6);
Tailwind
colors: {
  custom: {
    50: '#695da5',
    500: '#18227f',
    950: '#000000',
  },
}
SCSS
$custom: #18227f;
$custom-light: #695da5;
$custom-dark: #000000;
JSON
{
  "hex": "#18227f",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 234.175,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31908,
    "c": 0.15398,
    "h": 269.6
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#18227F
secondary
#B3A83F
accent
#DA3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227F

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

Preview Lab → · Contrast checker → · Palette generator →

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