#18254D#18254D

#18254D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.7% C 0.076 H 267.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#18254D
RGBrgb(24, 37, 77)
HSLhsl(225, 52%, 20%)
HSVhsv(225, 69%, 30%)
CMYKcmyk(68.8%, 51.9%, 0%, 69.8%)
CIE-LABlab(15.76, 9.32, -26.45)
CIE-LCHlch(15.76, 28.05, 289.41°)
OKLaboklab(27.72% -0.003 -0.0756)
OKLCHoklch(27.72% 0.076 267.7)
XYZxyz(2.3774, 2.0529, 7.2907)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18254D #4D4018
analogous
#18404D #18254D #26184D
triadic
#18254D #4D1825 #254D18
tetradic
#18254D #4D1840 #4D4018 #184D26
square
#18254D #4D1840 #4D4018 #184D26
split-complementary
#18254D #4D2618 #404D18
monochromatic
#070B17 #090F1E #18254D #273B7C #3552AA

Accessibility & contrast

On white

14.89
#18254D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18254D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18254D
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18254D#FFFFFF#000000##FFFFFF
##18254D1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4E
Deuteranopia (green-blind)
#08254C
Tritanopia (blue-blind)
#002E35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18254d;
/* rgb */ color: rgb(24, 37, 77);
/* oklch */ color: oklch(27.7% 0.076 267.7);
Tailwind
colors: {
  custom: {
    50: '#5b5f7f',
    500: '#18254d',
    950: '#000000',
  },
}
SCSS
$custom: #18254d;
$custom-light: #5b5f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#18254d",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 77
  },
  "hsl": {
    "h": 225.283,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27716,
    "c": 0.07568,
    "h": 267.7
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#18254D
secondary
#84723D
accent
#B94CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18254D

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

Preview Lab → · Contrast checker → · Palette generator →

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