#18255B#18255B

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

Color values

HEX#18255B
RGBrgb(24, 37, 91)
HSLhsl(228, 58%, 23%)
HSVhsv(228, 74%, 36%)
CMYKcmyk(73.6%, 59.3%, 0%, 64.3%)
CIE-LABlab(16.86, 15.08, -34.12)
CIE-LCHlch(16.86, 37.31, 293.84°)
OKLaboklab(28.89% -0.0014 -0.0982)
OKLCHoklch(28.89% 0.098 269.2)
XYZxyz(2.9259, 2.2724, 10.1799)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255B #5B4E18
analogous
#18475B #18255B #2C185B
triadic
#18255B #5B1825 #255B18
tetradic
#18255B #5B1847 #5B4E18 #185B2C
square
#18255B #5B1847 #5B4E18 #185B2C
split-complementary
#18255B #5B2C18 #475B18
monochromatic
#060A18 #0B112B #18255B #25398B #324CBC

Accessibility & contrast

On white

14.44
#18255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18255B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255B#FFFFFF#000000##FFFFFF
##18255B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18255b;
/* rgb */ color: rgb(24, 37, 91);
/* oklch */ color: oklch(28.9% 0.098 269.2);
Tailwind
colors: {
  custom: {
    50: '#5f5f8a',
    500: '#18255b',
    950: '#000000',
  },
}
SCSS
$custom: #18255b;
$custom-light: #5f5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#18255b",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 228.358,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28893,
    "c": 0.0982,
    "h": 269.2
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#18255B
secondary
#92813D
accent
#C346E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18255B

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

Preview Lab → · Contrast checker → · Palette generator →

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