#18225C#18225C

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

Color values

HEX#18225C
RGBrgb(24, 34, 92)
HSLhsl(231, 59%, 23%)
HSVhsv(231, 74%, 36%)
CMYKcmyk(73.9%, 63%, 0%, 63.9%)
CIE-LABlab(16.06, 17.70, -36.09)
CIE-LCHlch(16.06, 40.19, 296.12°)
OKLaboklab(28.32% 0.0014 -0.104)
OKLCHoklch(28.32% 0.104 270.8)
XYZxyz(2.8798, 2.1107, 10.3788)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18225C #5C5218
analogous
#18445C #18225C #30185C
triadic
#18225C #5C1822 #225C18
tetradic
#18225C #5C1844 #5C5218 #185C30
square
#18225C #5C1844 #5C5218 #185C30
split-complementary
#18225C #5C3018 #445C18
monochromatic
#060918 #0B102B #18225C #25348D #3146BD

Accessibility & contrast

On white

14.77
#18225C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18225C
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18225C#FFFFFF#000000##FFFFFF
##18225C1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18225c;
/* rgb */ color: rgb(24, 34, 92);
/* oklch */ color: oklch(28.3% 0.104 270.8);
Tailwind
colors: {
  custom: {
    50: '#5f5c8b',
    500: '#18225c',
    950: '#000000',
  },
}
SCSS
$custom: #18225c;
$custom-light: #5f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18225c",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 92
  },
  "hsl": {
    "h": 231.176,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28323,
    "c": 0.10402,
    "h": 270.8
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18225C

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

Preview Lab → · Contrast checker → · Palette generator →

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