#18274F#18274F

#18274F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.076 H 266.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#18274F
RGBrgb(24, 39, 79)
HSLhsl(224, 53%, 20%)
HSVhsv(224, 70%, 31%)
CMYKcmyk(69.6%, 50.6%, 0%, 69%)
CIE-LABlab(16.55, 8.65, -26.55)
CIE-LCHlch(16.55, 27.92, 288.05°)
OKLaboklab(28.37% -0.005 -0.0759)
OKLCHoklch(28.37% 0.076 266.2)
XYZxyz(2.5130, 2.2095, 7.6897)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18274F #4F4018
analogous
#18434F #18274F #24184F
triadic
#18274F #4F1827 #274F18
tetradic
#18274F #4F1843 #4F4018 #184F24
square
#18274F #4F1843 #4F4018 #184F24
split-complementary
#18274F #4F2418 #434F18
monochromatic
#070C17 #0A1020 #18274F #263E7E #3555AD

Accessibility & contrast

On white

14.56
#18274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18274F
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18274F#FFFFFF#000000##FFFFFF
##18274F1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C50
Deuteranopia (green-blind)
#0A274E
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18274f;
/* rgb */ color: rgb(24, 39, 79);
/* oklch */ color: oklch(28.4% 0.076 266.2);
Tailwind
colors: {
  custom: {
    50: '#5c6080',
    500: '#18274f',
    950: '#000000',
  },
}
SCSS
$custom: #18274f;
$custom-light: #5c6080;
$custom-dark: #000000;
JSON
{
  "hex": "#18274f",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 223.636,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28365,
    "c": 0.07604,
    "h": 266.2
  },
  "luminance": 0.0221
}

Semantic roles & 50–950 ramp

primary
#18274F
secondary
#86723D
accent
#B54BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18274F

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

Preview Lab → · Contrast checker → · Palette generator →

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