#18255A#18255A

#18255A is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.097 H 269.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#18255A
RGBrgb(24, 37, 90)
HSLhsl(228, 58%, 22%)
HSVhsv(228, 73%, 35%)
CMYKcmyk(73.3%, 58.9%, 0%, 64.7%)
CIE-LABlab(16.77, 14.67, -33.59)
CIE-LCHlch(16.77, 36.66, 293.59°)
OKLaboklab(28.8% -0.0015 -0.0966)
OKLCHoklch(28.8% 0.097 269.1)
XYZxyz(2.8831, 2.2552, 9.9542)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18255A #5A4D18
analogous
#18465A #18255A #2C185A
triadic
#18255A #5A1825 #255A18
tetradic
#18255A #5A1846 #5A4D18 #185A2C
square
#18255A #5A1846 #5A4D18 #185A2C
split-complementary
#18255A #5A2C18 #465A18
monochromatic
#060A18 #0B112A #18255A #25398A #324DBB

Accessibility & contrast

On white

14.47
#18255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18255A
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18255A#FFFFFF#000000##FFFFFF
##18255A1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18255a;
/* rgb */ color: rgb(24, 37, 90);
/* oklch */ color: oklch(28.8% 0.097 269.1);
Tailwind
colors: {
  custom: {
    50: '#5e5f89',
    500: '#18255a',
    950: '#000000',
  },
}
SCSS
$custom: #18255a;
$custom-light: #5e5f89;
$custom-dark: #000000;
JSON
{
  "hex": "#18255a",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 228.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28804,
    "c": 0.09663,
    "h": 269.1
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#18255A
secondary
#91803D
accent
#C347E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #18255A

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

Preview Lab → · Contrast checker → · Palette generator →

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