#18257F#18257F

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

Color values

HEX#18257F
RGBrgb(24, 37, 127)
HSLhsl(232, 68%, 30%)
HSVhsv(232, 81%, 50%)
CMYKcmyk(81.1%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.24, 29.48, -51.97)
CIE-LCHlch(20.24, 59.75, 299.56°)
OKLaboklab(32.43% -0.0025 -0.1505)
OKLCHoklch(32.43% 0.151 269.1)
XYZxyz(4.8677, 3.0491, 20.4065)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18257F #7F7218
analogous
#18597F #18257F #3E187F
triadic
#18257F #7F1825 #257F18
tetradic
#18257F #7F1859 #7F7218 #187F3E
square
#18257F #7F1859 #7F7218 #187F3E
split-complementary
#18257F #7F3E18 #597F18
monochromatic
#05071A #0E164C #18257F #2234B2 #384CD9

Accessibility & contrast

On white

13.04
#18257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#18257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18257F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18257F#FFFFFF#000000##FFFFFF
##18257F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18257f;
/* rgb */ color: rgb(24, 37, 127);
/* oklch */ color: oklch(32.4% 0.151 269.1);
Tailwind
colors: {
  custom: {
    50: '#685fa5',
    500: '#18257f',
    950: '#000000',
  },
}
SCSS
$custom: #18257f;
$custom-light: #685fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#18257f",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 232.427,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32431,
    "c": 0.15052,
    "h": 269.1
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#18257F
secondary
#B3A53F
accent
#D53DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18257F

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

Preview Lab → · Contrast checker → · Palette generator →

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