#18257C#18257C

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

Color values

HEX#18257C
RGBrgb(24, 37, 124)
HSLhsl(232, 68%, 29%)
HSVhsv(232, 81%, 49%)
CMYKcmyk(80.6%, 70.2%, 0%, 51.4%)
CIE-LABlab(19.93, 28.32, -50.58)
CIE-LCHlch(19.93, 57.96, 299.25°)
OKLaboklab(32.12% -0.0022 -0.1464)
OKLCHoklch(32.12% 0.146 269.1)
XYZxyz(4.6751, 2.9720, 19.3921)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18257C #7C6F18
analogous
#18577C #18257C #3D187C
triadic
#18257C #7C1825 #257C18
tetradic
#18257C #7C1857 #7C6F18 #187C3D
square
#18257C #7C1857 #7C6F18 #187C3D
split-complementary
#18257C #7C3D18 #577C18
monochromatic
#05081A #0E1649 #18257C #2234AF #364BD8

Accessibility & contrast

On white

13.17
#18257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#18257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18257C
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18257C#FFFFFF#000000##FFFFFF
##18257C1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #18257c;
/* rgb */ color: rgb(24, 37, 124);
/* oklch */ color: oklch(32.1% 0.146 269.1);
Tailwind
colors: {
  custom: {
    50: '#685fa3',
    500: '#18257c',
    950: '#000000',
  },
}
SCSS
$custom: #18257c;
$custom-light: #685fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#18257c",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 232.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32115,
    "c": 0.14644,
    "h": 269.1
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#18257C
secondary
#B1A23F
accent
#D43DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18257C

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

Preview Lab → · Contrast checker → · Palette generator →

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