#18257A#18257A

#18257A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.144 H 269.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#18257A
RGBrgb(24, 37, 122)
HSLhsl(232, 67%, 29%)
HSVhsv(232, 80%, 48%)
CMYKcmyk(80.3%, 69.7%, 0%, 52.2%)
CIE-LABlab(19.73, 27.54, -49.63)
CIE-LCHlch(19.73, 56.77, 299.03°)
OKLaboklab(31.91% -0.002 -0.1437)
OKLCHoklch(31.91% 0.144 269.2)
XYZxyz(4.5499, 2.9220, 18.7328)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18257A #7A6D18
analogous
#18567A #18257A #3C187A
triadic
#18257A #7A1825 #257A18
tetradic
#18257A #7A1856 #7A6D18 #187A3C
square
#18257A #7A1856 #7A6D18 #187A3C
split-complementary
#18257A #7A3C18 #567A18
monochromatic
#05081A #0E1547 #18257A #2235AD #354BD7

Accessibility & contrast

On white

13.25
#18257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#18257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18257A
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18257A#FFFFFF#000000##FFFFFF
##18257A1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #18257a;
/* rgb */ color: rgb(24, 37, 122);
/* oklch */ color: oklch(31.9% 0.144 269.2);
Tailwind
colors: {
  custom: {
    50: '#675fa1',
    500: '#18257a',
    950: '#000000',
  },
}
SCSS
$custom: #18257a;
$custom-light: #675fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#18257a",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 232.041,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31905,
    "c": 0.14368,
    "h": 269.2
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#18257A
secondary
#AFA03F
accent
#D33EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18257A

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

Preview Lab → · Contrast checker → · Palette generator →

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