#18245F#18245F

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

Color values

HEX#18245F
RGBrgb(24, 36, 95)
HSLhsl(230, 60%, 23%)
HSVhsv(230, 75%, 37%)
CMYKcmyk(74.7%, 62.1%, 0%, 62.7%)
CIE-LABlab(16.90, 17.46, -36.71)
CIE-LCHlch(16.90, 40.65, 295.43°)
OKLaboklab(29.03% -0.0003 -0.1058)
OKLCHoklch(29.03% 0.106 269.8)
XYZxyz(3.0724, 2.2819, 11.1028)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18245F #5F5318
analogous
#18475F #18245F #2F185F
triadic
#18245F #5F1824 #245F18
tetradic
#18245F #5F1847 #5F5318 #185F2F
square
#18245F #5F1847 #5F5318 #185F2F
split-complementary
#18245F #5F2F18 #475F18
monochromatic
#060918 #0C112E #18245F #243790 #3149C1

Accessibility & contrast

On white

14.42
#18245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18245F
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18245F#FFFFFF#000000##FFFFFF
##18245F1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18245f;
/* rgb */ color: rgb(24, 36, 95);
/* oklch */ color: oklch(29.0% 0.106 269.8);
Tailwind
colors: {
  custom: {
    50: '#605e8d',
    500: '#18245f',
    950: '#000000',
  },
}
SCSS
$custom: #18245f;
$custom-light: #605e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18245f",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 229.859,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29034,
    "c": 0.10581,
    "h": 269.8
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18245F

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

Preview Lab → · Contrast checker → · Palette generator →

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