#18255F#18255F

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

Color values

HEX#18255F
RGBrgb(24, 37, 95)
HSLhsl(229, 60%, 23%)
HSVhsv(229, 75%, 37%)
CMYKcmyk(74.7%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.19, 16.73, -36.23)
CIE-LCHlch(17.19, 39.91, 294.78°)
OKLaboklab(29.25% -0.0012 -0.1044)
OKLCHoklch(29.25% 0.104 269.3)
XYZxyz(3.1031, 2.3432, 11.1130)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255F #5F5218
analogous
#18485F #18255F #2E185F
triadic
#18255F #5F1825 #255F18
tetradic
#18255F #5F1848 #5F5218 #185F2E
square
#18255F #5F1848 #5F5218 #185F2E
split-complementary
#18255F #5F2E18 #485F18
monochromatic
#060A18 #0C122E #18255F #243890 #314BC1

Accessibility & contrast

On white

14.30
#18255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18255F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255F#FFFFFF#000000##FFFFFF
##18255F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18255f;
/* rgb */ color: rgb(24, 37, 95);
/* oklch */ color: oklch(29.3% 0.104 269.3);
Tailwind
colors: {
  custom: {
    50: '#605f8d',
    500: '#18255f',
    950: '#000000',
  },
}
SCSS
$custom: #18255f;
$custom-light: #605f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18255f",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 229.014,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29253,
    "c": 0.10441,
    "h": 269.3
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#18255F
secondary
#95853D
accent
#C645E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18255F

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

Preview Lab → · Contrast checker → · Palette generator →

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