#18225A#18225A

#18225A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.101 H 270.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#18225A
RGBrgb(24, 34, 90)
HSLhsl(231, 58%, 22%)
HSVhsv(231, 73%, 35%)
CMYKcmyk(73.3%, 62.2%, 0%, 64.7%)
CIE-LABlab(15.88, 16.88, -35.04)
CIE-LCHlch(15.88, 38.89, 295.72°)
OKLaboklab(28.14% 0.0014 -0.1009)
OKLCHoklch(28.14% 0.101 270.8)
XYZxyz(2.7936, 2.0762, 9.9244)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18225A #5A5018
analogous
#18435A #18225A #2F185A
triadic
#18225A #5A1822 #225A18
tetradic
#18225A #5A1843 #5A5018 #185A2F
square
#18225A #5A1843 #5A5018 #185A2F
split-complementary
#18225A #5A2F18 #435A18
monochromatic
#060918 #0B102A #18225A #25348A #3247BB

Accessibility & contrast

On white

14.84
#18225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18225A
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18225A#FFFFFF#000000##FFFFFF
##18225A1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18225a;
/* rgb */ color: rgb(24, 34, 90);
/* oklch */ color: oklch(28.1% 0.101 270.8);
Tailwind
colors: {
  custom: {
    50: '#5f5c89',
    500: '#18225a',
    950: '#000000',
  },
}
SCSS
$custom: #18225a;
$custom-light: #5f5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#18225a",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 230.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28137,
    "c": 0.10093,
    "h": 270.8
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#18225A
secondary
#91843D
accent
#CA47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #18225A

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

Preview Lab → · Contrast checker → · Palette generator →

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