#18257E#18257E

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

Color values

HEX#18257E
RGBrgb(24, 37, 126)
HSLhsl(232, 68%, 29%)
HSVhsv(232, 81%, 49%)
CMYKcmyk(81%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.14, 29.09, -51.51)
CIE-LCHlch(20.14, 59.16, 299.46°)
OKLaboklab(32.32% -0.0024 -0.1491)
OKLCHoklch(32.32% 0.149 269.1)
XYZxyz(4.8029, 3.0231, 20.0650)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18257E #7E7118
analogous
#18587E #18257E #3E187E
triadic
#18257E #7E1825 #257E18
tetradic
#18257E #7E1858 #7E7118 #187E3E
square
#18257E #7E1858 #7E7118 #187E3E
split-complementary
#18257E #7E3E18 #587E18
monochromatic
#05081A #0E164B #18257E #2234B1 #374CD9

Accessibility & contrast

On white

13.09
#18257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18257E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18257E#FFFFFF#000000##FFFFFF
##18257E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18257e;
/* rgb */ color: rgb(24, 37, 126);
/* oklch */ color: oklch(32.3% 0.149 269.1);
Tailwind
colors: {
  custom: {
    50: '#685fa4',
    500: '#18257e',
    950: '#000000',
  },
}
SCSS
$custom: #18257e;
$custom-light: #685fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#18257e",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 232.353,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32325,
    "c": 0.14916,
    "h": 269.1
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18257E

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

Preview Lab → · Contrast checker → · Palette generator →

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