#18255C#18255C

#18255C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.100 H 269.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#18255C
RGBrgb(24, 37, 92)
HSLhsl(229, 59%, 23%)
HSVhsv(229, 74%, 36%)
CMYKcmyk(73.9%, 59.8%, 0%, 63.9%)
CIE-LABlab(16.94, 15.49, -34.66)
CIE-LCHlch(16.94, 37.96, 294.09°)
OKLaboklab(28.98% -0.0014 -0.0997)
OKLCHoklch(28.98% 0.1 269.2)
XYZxyz(2.9694, 2.2897, 10.4086)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255C #5C4F18
analogous
#18475C #18255C #2D185C
triadic
#18255C #5C1825 #255C18
tetradic
#18255C #5C1847 #5C4F18 #185C2D
square
#18255C #5C1847 #5C4F18 #185C2D
split-complementary
#18255C #5C2D18 #475C18
monochromatic
#060A18 #0B112B #18255C #25398D #314CBD

Accessibility & contrast

On white

14.40
#18255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18255C
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255C#FFFFFF#000000##FFFFFF
##18255C1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18255c;
/* rgb */ color: rgb(24, 37, 92);
/* oklch */ color: oklch(29.0% 0.100 269.2);
Tailwind
colors: {
  custom: {
    50: '#5f5f8b',
    500: '#18255c',
    950: '#000000',
  },
}
SCSS
$custom: #18255c;
$custom-light: #5f5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18255c",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 228.529,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28982,
    "c": 0.09976,
    "h": 269.2
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#18255C
secondary
#93823D
accent
#C446E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18255C

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

Preview Lab → · Contrast checker → · Palette generator →

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