#18256C#18256C

#18256C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.124 H 269.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#18256C
RGBrgb(24, 37, 108)
HSLhsl(231, 64%, 26%)
HSVhsv(231, 78%, 42%)
CMYKcmyk(77.8%, 65.7%, 0%, 57.6%)
CIE-LABlab(18.36, 22.01, -42.86)
CIE-LCHlch(18.36, 48.18, 297.18°)
OKLaboklab(30.49% -0.0012 -0.1238)
OKLCHoklch(30.49% 0.124 269.4)
XYZxyz(3.7441, 2.5996, 14.4889)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256C #6C5F18
analogous
#184F6C #18256C #35186C
triadic
#18256C #6C1825 #256C18
tetradic
#18256C #6C184F #6C5F18 #186C35
square
#18256C #6C184F #6C5F18 #186C35
split-complementary
#18256C #6C3518 #4F6C18
monochromatic
#060919 #0D143A #18256C #23369E #2E47D0

Accessibility & contrast

On white

13.82
#18256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#18256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18256C
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256C#FFFFFF#000000##FFFFFF
##18256C1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18256c;
/* rgb */ color: rgb(24, 37, 108);
/* oklch */ color: oklch(30.5% 0.124 269.4);
Tailwind
colors: {
  custom: {
    50: '#635f97',
    500: '#18256c',
    950: '#000000',
  },
}
SCSS
$custom: #18256c;
$custom-light: #635f97;
$custom-dark: #000000;
JSON
{
  "hex": "#18256c",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 230.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30486,
    "c": 0.12386,
    "h": 269.4
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#18256C
secondary
#A2923E
accent
#CD41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18256C

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

Preview Lab → · Contrast checker → · Palette generator →

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