#18274B#18274B

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

Color values

HEX#18274B
RGBrgb(24, 39, 75)
HSLhsl(222, 52%, 19%)
HSVhsv(222, 68%, 29%)
CMYKcmyk(68%, 48%, 0%, 70.6%)
CIE-LABlab(16.27, 7.01, -24.27)
CIE-LCHlch(16.27, 25.27, 286.12°)
OKLaboklab(28.06% -0.0058 -0.0692)
OKLCHoklch(28.06% 0.069 265.2)
XYZxyz(2.3718, 2.1530, 6.9458)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18274B #4B3C18
analogous
#18414B #18274B #23184B
triadic
#18274B #4B1827 #274B18
tetradic
#18274B #4B1841 #4B3C18 #184B23
square
#18274B #4B1841 #4B3C18 #184B23
split-complementary
#18274B #4B2318 #414B18
monochromatic
#070C17 #090F1D #18274B #273F79 #3657A8

Accessibility & contrast

On white

14.68
#18274B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18274B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18274B#FFFFFF#000000##FFFFFF
##18274B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172B4C
Deuteranopia (green-blind)
#0F264A
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18274b;
/* rgb */ color: rgb(24, 39, 75);
/* oklch */ color: oklch(28.1% 0.069 265.2);
Tailwind
colors: {
  custom: {
    50: '#5b607d',
    500: '#18274b',
    950: '#000000',
  },
}
SCSS
$custom: #18274b;
$custom-light: #5b607d;
$custom-dark: #000000;
JSON
{
  "hex": "#18274b",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 75
  },
  "hsl": {
    "h": 222.353,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2806,
    "c": 0.06943,
    "h": 265.2
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#18274B
secondary
#826E3D
accent
#B14DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18274B

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

Preview Lab → · Contrast checker → · Palette generator →

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