#18295C#18295C

#18295C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.094 H 266.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#18295C
RGBrgb(24, 41, 92)
HSLhsl(225, 59%, 23%)
HSVhsv(225, 74%, 36%)
CMYKcmyk(73.9%, 55.4%, 0%, 63.9%)
CIE-LABlab(18.15, 12.55, -32.69)
CIE-LCHlch(18.15, 35.01, 291.00°)
OKLaboklab(29.9% -0.0053 -0.0939)
OKLCHoklch(29.9% 0.094 266.8)
XYZxyz(3.1007, 2.5525, 10.4524)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18295C #5C4B18
analogous
#184B5C #18295C #29185C
triadic
#18295C #5C1829 #295C18
tetradic
#18295C #5C184B #5C4B18 #185C29
square
#18295C #5C184B #5C4B18 #185C29
split-complementary
#18295C #5C2918 #4B5C18
monochromatic
#060B18 #0B132B #18295C #253F8D #3154BD

Accessibility & contrast

On white

13.90
#18295C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18295C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18295C#FFFFFF#000000##FFFFFF
##18295C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18295c;
/* rgb */ color: rgb(24, 41, 92);
/* oklch */ color: oklch(29.9% 0.094 266.8);
Tailwind
colors: {
  custom: {
    50: '#5f628b',
    500: '#18295c',
    950: '#000000',
  },
}
SCSS
$custom: #18295c;
$custom-light: #5f628b;
$custom-dark: #000000;
JSON
{
  "hex": "#18295c",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 92
  },
  "hsl": {
    "h": 225,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29898,
    "c": 0.09405,
    "h": 266.8
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18295C

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

Preview Lab → · Contrast checker → · Palette generator →

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