#18225D#18225D

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

Color values

HEX#18225D
RGBrgb(24, 34, 93)
HSLhsl(231, 59%, 23%)
HSVhsv(231, 74%, 36%)
CMYKcmyk(74.2%, 63.4%, 0%, 63.5%)
CIE-LABlab(16.15, 18.10, -36.61)
CIE-LCHlch(16.15, 40.84, 296.31°)
OKLaboklab(28.42% 0.0014 -0.1055)
OKLCHoklch(28.42% 0.106 270.8)
XYZxyz(2.9238, 2.1283, 10.6105)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18225D #5D5318
analogous
#18445D #18225D #30185D
triadic
#18225D #5D1822 #225D18
tetradic
#18225D #5D1844 #5D5318 #185D30
square
#18225D #5D1844 #5D5318 #185D30
split-complementary
#18225D #5D3018 #445D18
monochromatic
#060918 #0B102C #18225D #25348E #3146BE

Accessibility & contrast

On white

14.73
#18225D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18225D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18225D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18225D#FFFFFF#000000##FFFFFF
##18225D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18225d;
/* rgb */ color: rgb(24, 34, 93);
/* oklch */ color: oklch(28.4% 0.106 270.8);
Tailwind
colors: {
  custom: {
    50: '#5f5c8b',
    500: '#18225d',
    950: '#000000',
  },
}
SCSS
$custom: #18225d;
$custom-light: #5f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18225d",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 93
  },
  "hsl": {
    "h": 231.304,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28417,
    "c": 0.10555,
    "h": 270.8
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#18225D
secondary
#93873D
accent
#CB46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18225D

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

Preview Lab → · Contrast checker → · Palette generator →

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