#18285F#18285F

#18285F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.9% C 0.100 H 267.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#18285F
RGBrgb(24, 40, 95)
HSLhsl(226, 60%, 23%)
HSVhsv(226, 75%, 37%)
CMYKcmyk(74.7%, 57.9%, 0%, 62.7%)
CIE-LABlab(18.09, 14.52, -34.78)
CIE-LCHlch(18.09, 37.69, 292.66°)
OKLaboklab(29.92% -0.004 -0.1001)
OKLCHoklch(29.92% 0.1 267.7)
XYZxyz(3.2003, 2.5377, 11.1454)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18285F #5F4F18
analogous
#184B5F #18285F #2B185F
triadic
#18285F #5F1828 #285F18
tetradic
#18285F #5F184B #5F4F18 #185F2B
square
#18285F #5F184B #5F4F18 #185F2B
split-complementary
#18285F #5F2B18 #4B5F18
monochromatic
#060A18 #0C132E #18285F #243D90 #3151C1

Accessibility & contrast

On white

13.93
#18285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18285F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18285F#FFFFFF#000000##FFFFFF
##18285F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18285f;
/* rgb */ color: rgb(24, 40, 95);
/* oklch */ color: oklch(29.9% 0.100 267.7);
Tailwind
colors: {
  custom: {
    50: '#5f618d',
    500: '#18285f',
    950: '#000000',
  },
}
SCSS
$custom: #18285f;
$custom-light: #5f618d;
$custom-dark: #000000;
JSON
{
  "hex": "#18285f",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 226.479,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29924,
    "c": 0.10016,
    "h": 267.7
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18285F

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

Preview Lab → · Contrast checker → · Palette generator →

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