#18255E#18255E

#18255E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.103 H 269.3°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#18255E
RGBrgb(24, 37, 94)
HSLhsl(229, 59%, 23%)
HSVhsv(229, 74%, 37%)
CMYKcmyk(74.5%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.11, 16.31, -35.71)
CIE-LCHlch(17.11, 39.26, 294.55°)
OKLaboklab(29.16% -0.0013 -0.1029)
OKLCHoklch(29.16% 0.103 269.3)
XYZxyz(3.0579, 2.3252, 10.8752)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255E #5E5118
analogous
#18485E #18255E #2E185E
triadic
#18255E #5E1825 #255E18
tetradic
#18255E #5E1848 #5E5118 #185E2E
square
#18255E #5E1848 #5E5118 #185E2E
split-complementary
#18255E #5E2E18 #485E18
monochromatic
#060A18 #0C122D #18255E #24388F #314BC0

Accessibility & contrast

On white

14.33
#18255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18255E
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255E#FFFFFF#000000##FFFFFF
##18255E1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18255e;
/* rgb */ color: rgb(24, 37, 94);
/* oklch */ color: oklch(29.2% 0.103 269.3);
Tailwind
colors: {
  custom: {
    50: '#5f5f8c',
    500: '#18255e',
    950: '#000000',
  },
}
SCSS
$custom: #18255e;
$custom-light: #5f5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18255e",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 228.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29162,
    "c": 0.10287,
    "h": 269.3
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#18255E
secondary
#94843D
accent
#C545E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18255E

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

Preview Lab → · Contrast checker → · Palette generator →

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