#18285E#18285E

#18285E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.099 H 267.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#18285E
RGBrgb(24, 40, 94)
HSLhsl(226, 59%, 23%)
HSVhsv(226, 74%, 37%)
CMYKcmyk(74.5%, 57.4%, 0%, 63.1%)
CIE-LABlab(18.01, 14.11, -34.25)
CIE-LCHlch(18.01, 37.05, 292.39°)
OKLaboklab(29.84% -0.0041 -0.0985)
OKLCHoklch(29.84% 0.099 267.6)
XYZxyz(3.1552, 2.5196, 10.9076)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18285E #5E4E18
analogous
#184B5E #18285E #2B185E
triadic
#18285E #5E1828 #285E18
tetradic
#18285E #5E184B #5E4E18 #185E2B
square
#18285E #5E184B #5E4E18 #185E2B
split-complementary
#18285E #5E2B18 #4B5E18
monochromatic
#060A18 #0C132D #18285E #243D8F #3151C0

Accessibility & contrast

On white

13.96
#18285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#18285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18285E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18285E#FFFFFF#000000##FFFFFF
##18285E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18285e;
/* rgb */ color: rgb(24, 40, 94);
/* oklch */ color: oklch(29.8% 0.099 267.6);
Tailwind
colors: {
  custom: {
    50: '#5f618c',
    500: '#18285e',
    950: '#000000',
  },
}
SCSS
$custom: #18285e;
$custom-light: #5f618c;
$custom-dark: #000000;
JSON
{
  "hex": "#18285e",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 226.286,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29837,
    "c": 0.09861,
    "h": 267.6
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#18285E
secondary
#94813D
accent
#BF45E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18285E

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

Preview Lab → · Contrast checker → · Palette generator →

#18285E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva