#18254B#18254B

#18254B is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.072 H 267.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#18254B
RGBrgb(24, 37, 75)
HSLhsl(225, 52%, 19%)
HSVhsv(225, 68%, 29%)
CMYKcmyk(68%, 50.7%, 0%, 70.6%)
CIE-LABlab(15.62, 8.50, -25.32)
CIE-LCHlch(15.62, 26.71, 288.56°)
OKLaboklab(27.56% -0.0033 -0.0723)
OKLCHoklch(27.56% 0.072 267.3)
XYZxyz(2.3078, 2.0251, 6.9245)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18254B #4B3E18
analogous
#183F4B #18254B #25184B
triadic
#18254B #4B1825 #254B18
tetradic
#18254B #4B183F #4B3E18 #184B25
square
#18254B #4B183F #4B3E18 #184B25
split-complementary
#18254B #4B2518 #3F4B18
monochromatic
#070B17 #090E1D #18254B #273C79 #3653A8

Accessibility & contrast

On white

14.95
#18254B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18254B
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18254B#FFFFFF#000000##FFFFFF
##18254B1.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294C
Deuteranopia (green-blind)
#0B254A
Tritanopia (blue-blind)
#002E34
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18254b;
/* rgb */ color: rgb(24, 37, 75);
/* oklch */ color: oklch(27.6% 0.072 267.3);
Tailwind
colors: {
  custom: {
    50: '#5b5f7d',
    500: '#18254b',
    950: '#000000',
  },
}
SCSS
$custom: #18254b;
$custom-light: #5b5f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#18254b",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 75
  },
  "hsl": {
    "h": 224.706,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2756,
    "c": 0.07236,
    "h": 267.3
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#18254B
secondary
#82703D
accent
#B74DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18254B

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

Preview Lab → · Contrast checker → · Palette generator →

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