#18295B#18295B

#18295B is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.092 H 266.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#18295B
RGBrgb(24, 41, 91)
HSLhsl(225, 58%, 23%)
HSVhsv(225, 74%, 36%)
CMYKcmyk(73.6%, 54.9%, 0%, 64.3%)
CIE-LABlab(18.08, 12.13, -32.15)
CIE-LCHlch(18.08, 34.36, 290.67°)
OKLaboklab(29.81% -0.0054 -0.0923)
OKLCHoklch(29.81% 0.092 266.6)
XYZxyz(3.0573, 2.5351, 10.2237)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18295B #5B4A18
analogous
#184B5B #18295B #28185B
triadic
#18295B #5B1829 #295B18
tetradic
#18295B #5B184B #5B4A18 #185B28
square
#18295B #5B184B #5B4A18 #185B28
split-complementary
#18295B #5B2818 #4B5B18
monochromatic
#060B18 #0B132B #18295B #253F8B #3255BC

Accessibility & contrast

On white

13.93
#18295B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18295B
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18295B#FFFFFF#000000##FFFFFF
##18295B1.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)
#0B2F5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18295b;
/* rgb */ color: rgb(24, 41, 91);
/* oklch */ color: oklch(29.8% 0.092 266.6);
Tailwind
colors: {
  custom: {
    50: '#5e628a',
    500: '#18295b',
    950: '#000000',
  },
}
SCSS
$custom: #18295b;
$custom-light: #5e628a;
$custom-dark: #000000;
JSON
{
  "hex": "#18295b",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 224.776,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29814,
    "c": 0.09248,
    "h": 266.6
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#18295B
secondary
#927C3D
accent
#BA46E1
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18295B

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

Preview Lab → · Contrast checker → · Palette generator →

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