#18235E#18235E

#18235E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.106 H 270.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#18235E
RGBrgb(24, 35, 94)
HSLhsl(231, 59%, 23%)
HSVhsv(231, 74%, 37%)
CMYKcmyk(74.5%, 62.8%, 0%, 63.1%)
CIE-LABlab(16.52, 17.78, -36.66)
CIE-LCHlch(16.52, 40.75, 295.87°)
OKLaboklab(28.73% 0.0005 -0.1057)
OKLCHoklch(28.73% 0.106 270.3)
XYZxyz(2.9974, 2.2041, 10.8550)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18235E #5E5318
analogous
#18465E #18235E #30185E
triadic
#18235E #5E1823 #235E18
tetradic
#18235E #5E1846 #5E5318 #185E30
square
#18235E #5E1846 #5E5318 #185E30
split-complementary
#18235E #5E3018 #465E18
monochromatic
#060918 #0C112D #18235E #24358F #3147C0

Accessibility & contrast

On white

14.58
#18235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18235E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18235E#FFFFFF#000000##FFFFFF
##18235E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18235e;
/* rgb */ color: rgb(24, 35, 94);
/* oklch */ color: oklch(28.7% 0.106 270.3);
Tailwind
colors: {
  custom: {
    50: '#605d8c',
    500: '#18235e',
    950: '#000000',
  },
}
SCSS
$custom: #18235e;
$custom-light: #605d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18235e",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 230.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28725,
    "c": 0.10568,
    "h": 270.3
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#18235E
secondary
#94873D
accent
#CA45E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18235E

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

Preview Lab → · Contrast checker → · Palette generator →

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