#18295E#18295E

#18295E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.097 H 267.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#18295E
RGBrgb(24, 41, 94)
HSLhsl(225, 59%, 23%)
HSVhsv(225, 74%, 37%)
CMYKcmyk(74.5%, 56.4%, 0%, 63.1%)
CIE-LABlab(18.31, 13.38, -33.76)
CIE-LCHlch(18.31, 36.31, 291.61°)
OKLaboklab(30.07% -0.0051 -0.0971)
OKLCHoklch(30.07% 0.097 267)
XYZxyz(3.1893, 2.5879, 10.9189)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18295E #5E4D18
analogous
#184C5E #18295E #2A185E
triadic
#18295E #5E1829 #295E18
tetradic
#18295E #5E184C #5E4D18 #185E2A
square
#18295E #5E184C #5E4D18 #185E2A
split-complementary
#18295E #5E2A18 #4C5E18
monochromatic
#060B18 #0C142D #18295E #243E8F #3154C0

Accessibility & contrast

On white

13.84
#18295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#18295E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18295E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18295E#FFFFFF#000000##FFFFFF
##18295E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18295e;
/* rgb */ color: rgb(24, 41, 94);
/* oklch */ color: oklch(30.1% 0.097 267.0);
Tailwind
colors: {
  custom: {
    50: '#5f628c',
    500: '#18295e',
    950: '#000000',
  },
}
SCSS
$custom: #18295e;
$custom-light: #5f628c;
$custom-dark: #000000;
JSON
{
  "hex": "#18295e",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 225.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30067,
    "c": 0.09719,
    "h": 267
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#18295E
secondary
#947F3D
accent
#BC45E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18295E

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

Preview Lab → · Contrast checker → · Palette generator →

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