#18227C#18227C

#18227C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.150 H 269.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#18227C
RGBrgb(24, 34, 124)
HSLhsl(234, 68%, 29%)
HSVhsv(234, 81%, 49%)
CMYKcmyk(80.6%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.20, 30.32, -51.79)
CIE-LCHlch(19.20, 60.01, 300.35°)
OKLaboklab(31.58% -0.0006 -0.15)
OKLCHoklch(31.58% 0.15 269.8)
XYZxyz(4.5856, 2.7930, 19.3623)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18227C #7C7218
analogous
#18547C #18227C #40187C
triadic
#18227C #7C1822 #227C18
tetradic
#18227C #7C1854 #7C7218 #187C40
square
#18227C #7C1854 #7C7218 #187C40
split-complementary
#18227C #7C4018 #547C18
monochromatic
#05071A #0E1449 #18227C #2230AF #3646D8

Accessibility & contrast

On white

13.47
#18227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18227C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18227C#FFFFFF#000000##FFFFFF
##18227C1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18227c;
/* rgb */ color: rgb(24, 34, 124);
/* oklch */ color: oklch(31.6% 0.150 269.8);
Tailwind
colors: {
  custom: {
    50: '#685da3',
    500: '#18227c',
    950: '#000000',
  },
}
SCSS
$custom: #18227c;
$custom-light: #685da3;
$custom-dark: #000000;
JSON
{
  "hex": "#18227c",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 234,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31581,
    "c": 0.14996,
    "h": 269.8
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#18227C
secondary
#B1A53F
accent
#D93DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18227C

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

Preview Lab → · Contrast checker → · Palette generator →

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