#18256B#18256B

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

Color values

HEX#18256B
RGBrgb(24, 37, 107)
HSLhsl(231, 63%, 26%)
HSVhsv(231, 78%, 42%)
CMYKcmyk(77.6%, 65.4%, 0%, 58%)
CIE-LABlab(18.27, 21.61, -42.36)
CIE-LCHlch(18.27, 47.55, 297.02°)
OKLaboklab(30.39% -0.0012 -0.1224)
OKLCHoklch(30.39% 0.122 269.4)
XYZxyz(3.6912, 2.5785, 14.2102)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256B #6B5E18
analogous
#184E6B #18256B #34186B
triadic
#18256B #6B1825 #256B18
tetradic
#18256B #6B184E #6B5E18 #186B34
square
#18256B #6B184E #6B5E18 #186B34
split-complementary
#18256B #6B3418 #4E6B18
monochromatic
#060919 #0D1439 #18256B #23369D #2E48CF

Accessibility & contrast

On white

13.85
#18256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18256B
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256B#FFFFFF#000000##FFFFFF
##18256B1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18256b;
/* rgb */ color: rgb(24, 37, 107);
/* oklch */ color: oklch(30.4% 0.122 269.4);
Tailwind
colors: {
  custom: {
    50: '#635f96',
    500: '#18256b',
    950: '#000000',
  },
}
SCSS
$custom: #18256b;
$custom-light: #635f96;
$custom-dark: #000000;
JSON
{
  "hex": "#18256b",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 230.602,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.1224,
    "h": 269.4
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#18256B
secondary
#A1913E
accent
#CD41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18256B

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

Preview Lab → · Contrast checker → · Palette generator →

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