#18245C#18245C

#18245C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.101 H 269.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#18245C
RGBrgb(24, 36, 92)
HSLhsl(229, 59%, 23%)
HSVhsv(229, 74%, 36%)
CMYKcmyk(73.9%, 60.9%, 0%, 63.9%)
CIE-LABlab(16.64, 16.23, -35.14)
CIE-LCHlch(16.64, 38.70, 294.79°)
OKLaboklab(28.76% -0.0004 -0.1012)
OKLCHoklch(28.76% 0.101 269.8)
XYZxyz(2.9387, 2.2284, 10.3984)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18245C #5C5018
analogous
#18465C #18245C #2E185C
triadic
#18245C #5C1824 #245C18
tetradic
#18245C #5C1846 #5C5018 #185C2E
square
#18245C #5C1846 #5C5018 #185C2E
split-complementary
#18245C #5C2E18 #465C18
monochromatic
#060918 #0B112B #18245C #25378D #314ABD

Accessibility & contrast

On white

14.52
#18245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18245C
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18245C#FFFFFF#000000##FFFFFF
##18245C1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18245c;
/* rgb */ color: rgb(24, 36, 92);
/* oklch */ color: oklch(28.8% 0.101 269.8);
Tailwind
colors: {
  custom: {
    50: '#5f5e8b',
    500: '#18245c',
    950: '#000000',
  },
}
SCSS
$custom: #18245c;
$custom-light: #5f5e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18245c",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 229.412,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28759,
    "c": 0.10119,
    "h": 269.8
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#18245C
secondary
#93833D
accent
#C646E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18245C

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

Preview Lab → · Contrast checker → · Palette generator →

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