#18254F#18254F

#18254F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.079 H 268.0°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#18254F
RGBrgb(24, 37, 79)
HSLhsl(226, 53%, 20%)
HSVhsv(226, 70%, 31%)
CMYKcmyk(69.6%, 53.2%, 0%, 69%)
CIE-LABlab(15.91, 10.14, -27.58)
CIE-LCHlch(15.91, 29.38, 290.19°)
OKLaboklab(27.88% -0.0027 -0.0789)
OKLCHoklch(27.88% 0.079 268)
XYZxyz(2.4491, 2.0816, 7.6684)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18254F #4F4218
analogous
#18404F #18254F #26184F
triadic
#18254F #4F1825 #254F18
tetradic
#18254F #4F1840 #4F4218 #184F26
square
#18254F #4F1840 #4F4218 #184F26
split-complementary
#18254F #4F2618 #404F18
monochromatic
#070B17 #0A0F20 #18254F #263B7E #3551AD

Accessibility & contrast

On white

14.83
#18254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18254F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18254F#FFFFFF#000000##FFFFFF
##18254F1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#05254E
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18254f;
/* rgb */ color: rgb(24, 37, 79);
/* oklch */ color: oklch(27.9% 0.079 268.0);
Tailwind
colors: {
  custom: {
    50: '#5c5f81',
    500: '#18254f',
    950: '#000000',
  },
}
SCSS
$custom: #18254f;
$custom-light: #5c5f81;
$custom-dark: #000000;
JSON
{
  "hex": "#18254f",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 225.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27876,
    "c": 0.07897,
    "h": 268
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#18254F
secondary
#86753D
accent
#BA4BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18254F

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

Preview Lab → · Contrast checker → · Palette generator →

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