#18295D#18295D

#18295D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.096 H 266.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#18295D
RGBrgb(24, 41, 93)
HSLhsl(225, 59%, 23%)
HSVhsv(225, 74%, 36%)
CMYKcmyk(74.2%, 55.9%, 0%, 63.5%)
CIE-LABlab(18.23, 12.96, -33.23)
CIE-LCHlch(18.23, 35.66, 291.31°)
OKLaboklab(29.98% -0.0052 -0.0955)
OKLCHoklch(29.98% 0.096 266.9)
XYZxyz(3.1447, 2.5701, 10.6841)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18295D #5D4C18
analogous
#184B5D #18295D #29185D
triadic
#18295D #5D1829 #295D18
tetradic
#18295D #5D184B #5D4C18 #185D29
square
#18295D #5D184B #5D4C18 #185D29
split-complementary
#18295D #5D2918 #4B5D18
monochromatic
#060B18 #0B142C #18295D #253E8E #3154BE

Accessibility & contrast

On white

13.87
#18295D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18295D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18295D
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18295D#FFFFFF#000000##FFFFFF
##18295D1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18295d;
/* rgb */ color: rgb(24, 41, 93);
/* oklch */ color: oklch(30.0% 0.096 266.9);
Tailwind
colors: {
  custom: {
    50: '#5f628b',
    500: '#18295d',
    950: '#000000',
  },
}
SCSS
$custom: #18295d;
$custom-light: #5f628b;
$custom-dark: #000000;
JSON
{
  "hex": "#18295d",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 93
  },
  "hsl": {
    "h": 225.217,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29982,
    "c": 0.09562,
    "h": 266.9
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#18295D
secondary
#937E3D
accent
#BC46E2
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18295D

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

Preview Lab → · Contrast checker → · Palette generator →

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