#18254E#18254E

#18254E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.077 H 267.9°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#18254E
RGBrgb(24, 37, 78)
HSLhsl(226, 53%, 20%)
HSVhsv(226, 69%, 31%)
CMYKcmyk(69.2%, 52.6%, 0%, 69.4%)
CIE-LABlab(15.84, 9.73, -27.01)
CIE-LCHlch(15.84, 28.71, 289.80°)
OKLaboklab(27.8% -0.0028 -0.0773)
OKLCHoklch(27.8% 0.077 267.9)
XYZxyz(2.4129, 2.0672, 7.4781)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18254E #4E4118
analogous
#18404E #18254E #26184E
triadic
#18254E #4E1825 #254E18
tetradic
#18254E #4E1840 #4E4118 #184E26
square
#18254E #4E1840 #4E4118 #184E26
split-complementary
#18254E #4E2618 #404E18
monochromatic
#070B17 #0A0F1F #18254E #263B7D #3551AC

Accessibility & contrast

On white

14.86
#18254E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18254E
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18254E#FFFFFF#000000##FFFFFF
##18254E1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#06254D
Tritanopia (blue-blind)
#002E35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18254e;
/* rgb */ color: rgb(24, 37, 78);
/* oklch */ color: oklch(27.8% 0.077 267.9);
Tailwind
colors: {
  custom: {
    50: '#5b5f80',
    500: '#18254e',
    950: '#000000',
  },
}
SCSS
$custom: #18254e;
$custom-light: #5b5f80;
$custom-dark: #000000;
JSON
{
  "hex": "#18254e",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 78
  },
  "hsl": {
    "h": 225.556,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.27796,
    "c": 0.07732,
    "h": 267.9
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#18254E
secondary
#85743D
accent
#B94BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18254E

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

Preview Lab → · Contrast checker → · Palette generator →

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