#18235B#18235B

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

Color values

HEX#18235B
RGBrgb(24, 35, 91)
HSLhsl(230, 58%, 23%)
HSVhsv(230, 74%, 36%)
CMYKcmyk(73.6%, 61.5%, 0%, 64.3%)
CIE-LABlab(16.26, 16.55, -35.09)
CIE-LCHlch(16.26, 38.80, 295.26°)
OKLaboklab(28.45% 0.0005 -0.1011)
OKLCHoklch(28.45% 0.101 270.3)
XYZxyz(2.8654, 2.1513, 10.1597)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18235B #5B5018
analogous
#18455B #18235B #2E185B
triadic
#18235B #5B1823 #235B18
tetradic
#18235B #5B1845 #5B5018 #185B2E
square
#18235B #5B1845 #5B5018 #185B2E
split-complementary
#18235B #5B2E18 #455B18
monochromatic
#060918 #0B102B #18235B #25368B #3248BC

Accessibility & contrast

On white

14.68
#18235B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18235B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18235B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18235B#FFFFFF#000000##FFFFFF
##18235B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18235b;
/* rgb */ color: rgb(24, 35, 91);
/* oklch */ color: oklch(28.4% 0.101 270.3);
Tailwind
colors: {
  custom: {
    50: '#5f5d8a',
    500: '#18235b',
    950: '#000000',
  },
}
SCSS
$custom: #18235b;
$custom-light: #5f5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#18235b",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 91
  },
  "hsl": {
    "h": 230.149,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28448,
    "c": 0.10106,
    "h": 270.3
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#18235B
secondary
#92843D
accent
#C846E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18235B

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

Preview Lab → · Contrast checker → · Palette generator →

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