#18245E#18245E

#18245E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.104 H 269.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#18245E
RGBrgb(24, 36, 94)
HSLhsl(230, 59%, 23%)
HSVhsv(230, 74%, 37%)
CMYKcmyk(74.5%, 61.7%, 0%, 63.1%)
CIE-LABlab(16.81, 17.05, -36.19)
CIE-LCHlch(16.81, 40.00, 295.23°)
OKLaboklab(28.94% -0.0004 -0.1043)
OKLCHoklch(28.94% 0.104 269.8)
XYZxyz(3.0273, 2.2638, 10.8649)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18245E #5E5218
analogous
#18475E #18245E #2F185E
triadic
#18245E #5E1824 #245E18
tetradic
#18245E #5E1847 #5E5218 #185E2F
square
#18245E #5E1847 #5E5218 #185E2F
split-complementary
#18245E #5E2F18 #475E18
monochromatic
#060918 #0C112D #18245E #24378F #3149C0

Accessibility & contrast

On white

14.45
#18245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18245E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18245E#FFFFFF#000000##FFFFFF
##18245E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18245e;
/* rgb */ color: rgb(24, 36, 94);
/* oklch */ color: oklch(28.9% 0.104 269.8);
Tailwind
colors: {
  custom: {
    50: '#5f5e8c',
    500: '#18245e',
    950: '#000000',
  },
}
SCSS
$custom: #18245e;
$custom-light: #5f5e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18245e",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 229.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28942,
    "c": 0.10427,
    "h": 269.8
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#18245E
secondary
#94863D
accent
#C845E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18245E

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

Preview Lab → · Contrast checker → · Palette generator →

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