#18225F#18225F

#18225F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.109 H 270.8°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#18225F
RGBrgb(24, 34, 95)
HSLhsl(232, 60%, 23%)
HSVhsv(232, 75%, 37%)
CMYKcmyk(74.7%, 64.2%, 0%, 62.7%)
CIE-LABlab(16.33, 18.92, -37.65)
CIE-LCHlch(16.33, 42.13, 296.68°)
OKLaboklab(28.61% 0.0014 -0.1086)
OKLCHoklch(28.61% 0.109 270.8)
XYZxyz(3.0136, 2.1642, 11.0832)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18225F #5F5518
analogous
#18455F #18225F #31185F
triadic
#18225F #5F1822 #225F18
tetradic
#18225F #5F1845 #5F5518 #185F31
square
#18225F #5F1845 #5F5518 #185F31
split-complementary
#18225F #5F3118 #455F18
monochromatic
#060918 #0C112E #18225F #243390 #3145C1

Accessibility & contrast

On white

14.66
#18225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18225F
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18225F#FFFFFF#000000##FFFFFF
##18225F1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18225f;
/* rgb */ color: rgb(24, 34, 95);
/* oklch */ color: oklch(28.6% 0.109 270.8);
Tailwind
colors: {
  custom: {
    50: '#605c8d',
    500: '#18225f',
    950: '#000000',
  },
}
SCSS
$custom: #18225f;
$custom-light: #605c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18225f",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 231.549,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28606,
    "c": 0.1086,
    "h": 270.8
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#18225F
secondary
#95893D
accent
#CD45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #18225F

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

Preview Lab → · Contrast checker → · Palette generator →

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