#18274A#18274A

#18274A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.068 H 264.9°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#18274A
RGBrgb(24, 39, 74)
HSLhsl(222, 51%, 19%)
HSVhsv(222, 68%, 29%)
CMYKcmyk(67.6%, 47.3%, 0%, 71%)
CIE-LABlab(16.20, 6.61, -23.70)
CIE-LCHlch(16.20, 24.60, 285.57°)
OKLaboklab(27.99% -0.006 -0.0675)
OKLCHoklch(27.99% 0.068 264.9)
XYZxyz(2.3378, 2.1394, 6.7670)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18274A #4A3B18
analogous
#18404A #18274A #22184A
triadic
#18274A #4A1827 #274A18
tetradic
#18274A #4A1840 #4A3B18 #184A22
square
#18274A #4A1840 #4A3B18 #184A22
split-complementary
#18274A #4A2218 #404A18
monochromatic
#070C17 #090F1C #18274A #273F78 #3658A6

Accessibility & contrast

On white

14.71
#18274A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18274A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18274A
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18274A#FFFFFF#000000##FFFFFF
##18274A1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172B4B
Deuteranopia (green-blind)
#102649
Tritanopia (blue-blind)
#002F34
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18274a;
/* rgb */ color: rgb(24, 39, 74);
/* oklch */ color: oklch(28.0% 0.068 264.9);
Tailwind
colors: {
  custom: {
    50: '#5a607d',
    500: '#18274a',
    950: '#000000',
  },
}
SCSS
$custom: #18274a;
$custom-light: #5a607d;
$custom-dark: #000000;
JSON
{
  "hex": "#18274a",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 74
  },
  "hsl": {
    "h": 222,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27985,
    "c": 0.06777,
    "h": 264.9
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#18274A
secondary
#816C3D
accent
#B04DDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #18274A

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

Preview Lab → · Contrast checker → · Palette generator →

#18274A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva