#18284F#18284F

#18284F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.075 H 265.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#18284F
RGBrgb(24, 40, 79)
HSLhsl(223, 53%, 20%)
HSVhsv(223, 70%, 31%)
CMYKcmyk(69.6%, 49.4%, 0%, 69%)
CIE-LABlab(16.87, 7.91, -26.03)
CIE-LCHlch(16.87, 27.21, 286.90°)
OKLaboklab(28.61% -0.0062 -0.0743)
OKLCHoklch(28.61% 0.075 265.2)
XYZxyz(2.5463, 2.2761, 7.7008)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18284F #4F3F18
analogous
#18444F #18284F #23184F
triadic
#18284F #4F1828 #284F18
tetradic
#18284F #4F1844 #4F3F18 #184F23
square
#18284F #4F1844 #4F3F18 #184F23
split-complementary
#18284F #4F2318 #444F18
monochromatic
#070C17 #0A1020 #18284F #26407E #3558AD

Accessibility & contrast

On white

14.43
#18284F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18284F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18284F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18284F#FFFFFF#000000##FFFFFF
##18284F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#0C274E
Tritanopia (blue-blind)
#003137
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18284f;
/* rgb */ color: rgb(24, 40, 79);
/* oklch */ color: oklch(28.6% 0.075 265.2);
Tailwind
colors: {
  custom: {
    50: '#5b6180',
    500: '#18284f',
    950: '#000000',
  },
}
SCSS
$custom: #18284f;
$custom-light: #5b6180;
$custom-dark: #000000;
JSON
{
  "hex": "#18284f",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 79
  },
  "hsl": {
    "h": 222.545,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28613,
    "c": 0.07459,
    "h": 265.2
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#18284F
secondary
#86713D
accent
#B24BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #18284F

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

Preview Lab → · Contrast checker → · Palette generator →

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