#18257D#18257D

#18257D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.148 H 269.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#18257D
RGBrgb(24, 37, 125)
HSLhsl(232, 68%, 29%)
HSVhsv(232, 81%, 49%)
CMYKcmyk(80.8%, 70.4%, 0%, 51%)
CIE-LABlab(20.03, 28.71, -51.04)
CIE-LCHlch(20.03, 58.56, 299.35°)
OKLaboklab(32.22% -0.0023 -0.1478)
OKLCHoklch(32.22% 0.148 269.1)
XYZxyz(4.7387, 2.9975, 19.7269)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18257D #7D7018
analogous
#18587D #18257D #3E187D
triadic
#18257D #7D1825 #257D18
tetradic
#18257D #7D1858 #7D7018 #187D3E
square
#18257D #7D1858 #7D7018 #187D3E
split-complementary
#18257D #7D3E18 #587D18
monochromatic
#05081A #0E164A #18257D #2234B0 #374CD9

Accessibility & contrast

On white

13.13
#18257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#18257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18257D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18257D#FFFFFF#000000##FFFFFF
##18257D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #18257d;
/* rgb */ color: rgb(24, 37, 125);
/* oklch */ color: oklch(32.2% 0.148 269.1);
Tailwind
colors: {
  custom: {
    50: '#685fa4',
    500: '#18257d',
    950: '#000000',
  },
}
SCSS
$custom: #18257d;
$custom-light: #685fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#18257d",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 232.277,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3222,
    "c": 0.1478,
    "h": 269.1
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#18257D
secondary
#B2A33F
accent
#D43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18257D

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

Preview Lab → · Contrast checker → · Palette generator →

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