#18225E#18225E

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

Color values

HEX#18225E
RGBrgb(24, 34, 94)
HSLhsl(231, 59%, 23%)
HSVhsv(231, 74%, 37%)
CMYKcmyk(74.5%, 63.8%, 0%, 63.1%)
CIE-LABlab(16.24, 18.51, -37.13)
CIE-LCHlch(16.24, 41.49, 296.50°)
OKLaboklab(28.51% 0.0014 -0.1071)
OKLCHoklch(28.51% 0.107 270.8)
XYZxyz(2.9684, 2.1461, 10.8453)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18225E #5E5418
analogous
#18455E #18225E #31185E
triadic
#18225E #5E1822 #225E18
tetradic
#18225E #5E1845 #5E5418 #185E31
square
#18225E #5E1845 #5E5418 #185E31
split-complementary
#18225E #5E3118 #455E18
monochromatic
#060918 #0C102D #18225E #24348F #3145C0

Accessibility & contrast

On white

14.69
#18225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18225E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18225E#FFFFFF#000000##FFFFFF
##18225E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18225e;
/* rgb */ color: rgb(24, 34, 94);
/* oklch */ color: oklch(28.5% 0.107 270.8);
Tailwind
colors: {
  custom: {
    50: '#605c8c',
    500: '#18225e',
    950: '#000000',
  },
}
SCSS
$custom: #18225e;
$custom-light: #605c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18225e",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 231.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28511,
    "c": 0.10708,
    "h": 270.8
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#18225E
secondary
#94883D
accent
#CC45E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18225E

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

Preview Lab → · Contrast checker → · Palette generator →

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