#18235F#18235F

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

Color values

HEX#18235F
RGBrgb(24, 35, 95)
HSLhsl(231, 60%, 23%)
HSVhsv(231, 75%, 37%)
CMYKcmyk(74.7%, 63.2%, 0%, 62.7%)
CIE-LABlab(16.61, 18.19, -37.18)
CIE-LCHlch(16.61, 41.39, 296.07°)
OKLaboklab(28.82% 0.0006 -0.1072)
OKLCHoklch(28.82% 0.107 270.3)
XYZxyz(3.0426, 2.2222, 11.0928)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18235F #5F5418
analogous
#18465F #18235F #30185F
triadic
#18235F #5F1823 #235F18
tetradic
#18235F #5F1846 #5F5418 #185F30
square
#18235F #5F1846 #5F5418 #185F30
split-complementary
#18235F #5F3018 #465F18
monochromatic
#060918 #0C112E #18235F #243590 #3147C1

Accessibility & contrast

On white

14.54
#18235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18235F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18235F#FFFFFF#000000##FFFFFF
##18235F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18235f;
/* rgb */ color: rgb(24, 35, 95);
/* oklch */ color: oklch(28.8% 0.107 270.3);
Tailwind
colors: {
  custom: {
    50: '#605d8d',
    500: '#18235f',
    950: '#000000',
  },
}
SCSS
$custom: #18235f;
$custom-light: #605d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18235f",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 230.704,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28819,
    "c": 0.10721,
    "h": 270.3
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#18235F
secondary
#95883D
accent
#CA45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #18235F

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

Preview Lab → · Contrast checker → · Palette generator →

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