#18295F#18295F

#18295F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.099 H 267.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#18295F
RGBrgb(24, 41, 95)
HSLhsl(226, 60%, 23%)
HSVhsv(226, 75%, 37%)
CMYKcmyk(74.7%, 56.8%, 0%, 62.7%)
CIE-LABlab(18.39, 13.79, -34.29)
CIE-LCHlch(18.39, 36.96, 291.91°)
OKLaboklab(30.15% -0.005 -0.0986)
OKLCHoklch(30.15% 0.099 267.1)
XYZxyz(3.2345, 2.6060, 11.1568)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18295F #5F4E18
analogous
#184C5F #18295F #2A185F
triadic
#18295F #5F1829 #295F18
tetradic
#18295F #5F184C #5F4E18 #185F2A
square
#18295F #5F184C #5F4E18 #185F2A
split-complementary
#18295F #5F2A18 #4C5F18
monochromatic
#060B18 #0C142E #18295F #243E90 #3153C1

Accessibility & contrast

On white

13.80
#18295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18295F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18295F#FFFFFF#000000##FFFFFF
##18295F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18295f;
/* rgb */ color: rgb(24, 41, 95);
/* oklch */ color: oklch(30.2% 0.099 267.1);
Tailwind
colors: {
  custom: {
    50: '#5f628d',
    500: '#18295f',
    950: '#000000',
  },
}
SCSS
$custom: #18295f;
$custom-light: #5f628d;
$custom-dark: #000000;
JSON
{
  "hex": "#18295f",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 225.634,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30153,
    "c": 0.09875,
    "h": 267.1
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#18295F
secondary
#95803D
accent
#BD45E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18295F

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

Preview Lab → · Contrast checker → · Palette generator →

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