#18274C#18274C

#18274C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.1% C 0.071 H 265.5°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#18274C
RGBrgb(24, 39, 76)
HSLhsl(223, 52%, 20%)
HSVhsv(223, 68%, 30%)
CMYKcmyk(68.4%, 48.7%, 0%, 70.2%)
CIE-LABlab(16.34, 7.42, -24.85)
CIE-LCHlch(16.34, 25.93, 286.63°)
OKLaboklab(28.14% -0.0056 -0.0709)
OKLCHoklch(28.14% 0.071 265.5)
XYZxyz(2.4063, 2.1668, 7.1275)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18274C #4C3D18
analogous
#18414C #18274C #23184C
triadic
#18274C #4C1827 #274C18
tetradic
#18274C #4C1841 #4C3D18 #184C23
square
#18274C #4C1841 #4C3D18 #184C23
split-complementary
#18274C #4C2318 #414C18
monochromatic
#070C17 #090F1D #18274C #273F7B #3557A9

Accessibility & contrast

On white

14.65
#18274C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18274C
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18274C#FFFFFF#000000##FFFFFF
##18274C1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4D
Deuteranopia (green-blind)
#0E264B
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18274c;
/* rgb */ color: rgb(24, 39, 76);
/* oklch */ color: oklch(28.1% 0.071 265.5);
Tailwind
colors: {
  custom: {
    50: '#5b607e',
    500: '#18274c',
    950: '#000000',
  },
}
SCSS
$custom: #18274c;
$custom-light: #5b607e;
$custom-dark: #000000;
JSON
{
  "hex": "#18274c",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 76
  },
  "hsl": {
    "h": 222.692,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28135,
    "c": 0.07109,
    "h": 265.5
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#18274C
secondary
#836F3D
accent
#B24CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18274C

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

Preview Lab → · Contrast checker → · Palette generator →

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