#18235C#18235C

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

Color values

HEX#18235C
RGBrgb(24, 35, 92)
HSLhsl(230, 59%, 23%)
HSVhsv(230, 74%, 36%)
CMYKcmyk(73.9%, 62%, 0%, 63.9%)
CIE-LABlab(16.35, 16.96, -35.62)
CIE-LCHlch(16.35, 39.45, 295.47°)
OKLaboklab(28.54% 0.0005 -0.1026)
OKLCHoklch(28.54% 0.103 270.3)
XYZxyz(2.9088, 2.1687, 10.3884)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18235C #5C5118
analogous
#18455C #18235C #2F185C
triadic
#18235C #5C1823 #235C18
tetradic
#18235C #5C1845 #5C5118 #185C2F
square
#18235C #5C1845 #5C5118 #185C2F
split-complementary
#18235C #5C2F18 #455C18
monochromatic
#060918 #0B112B #18235C #25358D #3148BD

Accessibility & contrast

On white

14.65
#18235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18235C
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18235C#FFFFFF#000000##FFFFFF
##18235C1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18235c;
/* rgb */ color: rgb(24, 35, 92);
/* oklch */ color: oklch(28.5% 0.103 270.3);
Tailwind
colors: {
  custom: {
    50: '#5f5d8b',
    500: '#18235c',
    950: '#000000',
  },
}
SCSS
$custom: #18235c;
$custom-light: #5f5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18235c",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 230.294,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2854,
    "c": 0.10261,
    "h": 270.3
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#18235C
secondary
#93853D
accent
#C946E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18235C

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

Preview Lab → · Contrast checker → · Palette generator →

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