#18274D#18274D

#18274D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.2% C 0.073 H 265.7°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#18274D
RGBrgb(24, 39, 77)
HSLhsl(223, 52%, 20%)
HSVhsv(223, 69%, 30%)
CMYKcmyk(68.8%, 49.4%, 0%, 69.8%)
CIE-LABlab(16.41, 7.83, -25.42)
CIE-LCHlch(16.41, 26.60, 287.13°)
OKLaboklab(28.21% -0.0054 -0.0725)
OKLCHoklch(28.21% 0.073 265.7)
XYZxyz(2.4413, 2.1808, 7.3120)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18274D #4D3E18
analogous
#18424D #18274D #24184D
triadic
#18274D #4D1827 #274D18
tetradic
#18274D #4D1842 #4D3E18 #184D24
square
#18274D #4D1842 #4D3E18 #184D24
split-complementary
#18274D #4D2418 #424D18
monochromatic
#070C17 #090F1E #18274D #273F7C #3556AA

Accessibility & contrast

On white

14.62
#18274D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18274D
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18274D#FFFFFF#000000##FFFFFF
##18274D1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4E
Deuteranopia (green-blind)
#0D264C
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18274d;
/* rgb */ color: rgb(24, 39, 77);
/* oklch */ color: oklch(28.2% 0.073 265.7);
Tailwind
colors: {
  custom: {
    50: '#5b607f',
    500: '#18274d',
    950: '#000000',
  },
}
SCSS
$custom: #18274d;
$custom-light: #5b607f;
$custom-dark: #000000;
JSON
{
  "hex": "#18274d",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 77
  },
  "hsl": {
    "h": 223.019,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28211,
    "c": 0.07274,
    "h": 265.7
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#18274D
secondary
#84703D
accent
#B34CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18274D

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

Preview Lab → · Contrast checker → · Palette generator →

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