#18255D#18255D

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

Color values

HEX#18255D
RGBrgb(24, 37, 93)
HSLhsl(229, 59%, 23%)
HSVhsv(229, 74%, 36%)
CMYKcmyk(74.2%, 60.2%, 0%, 63.5%)
CIE-LABlab(17.02, 15.91, -35.18)
CIE-LCHlch(17.02, 38.61, 294.33°)
OKLaboklab(29.07% -0.0013 -0.1013)
OKLCHoklch(29.07% 0.101 269.2)
XYZxyz(3.0134, 2.3073, 10.6404)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255D #5D5018
analogous
#18475D #18255D #2E185D
triadic
#18255D #5D1825 #255D18
tetradic
#18255D #5D1847 #5D5018 #185D2E
square
#18255D #5D1847 #5D5018 #185D2E
split-complementary
#18255D #5D2E18 #475D18
monochromatic
#060A18 #0B122C #18255D #25388E #314CBE

Accessibility & contrast

On white

14.37
#18255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18255D
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255D#FFFFFF#000000##FFFFFF
##18255D1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18255d;
/* rgb */ color: rgb(24, 37, 93);
/* oklch */ color: oklch(29.1% 0.101 269.2);
Tailwind
colors: {
  custom: {
    50: '#5f5f8b',
    500: '#18255d',
    950: '#000000',
  },
}
SCSS
$custom: #18255d;
$custom-light: #5f5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18255d",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 228.696,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29072,
    "c": 0.10132,
    "h": 269.2
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18255D

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

Preview Lab → · Contrast checker → · Palette generator →

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