#18256D#18256D

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

Color values

HEX#18256D
RGBrgb(24, 37, 109)
HSLhsl(231, 64%, 26%)
HSVhsv(231, 78%, 43%)
CMYKcmyk(78%, 66.1%, 0%, 57.3%)
CIE-LABlab(18.46, 22.41, -43.36)
CIE-LCHlch(18.46, 48.81, 297.33°)
OKLaboklab(30.58% -0.0013 -0.1253)
OKLCHoklch(30.58% 0.125 269.4)
XYZxyz(3.7976, 2.6210, 14.7708)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256D #6D6018
analogous
#184F6D #18256D #35186D
triadic
#18256D #6D1825 #256D18
tetradic
#18256D #6D184F #6D6018 #186D35
square
#18256D #6D184F #6D6018 #186D35
split-complementary
#18256D #6D3518 #4F6D18
monochromatic
#060919 #0D143B #18256D #23369F #2E47D1

Accessibility & contrast

On white

13.78
#18256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18256D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256D#FFFFFF#000000##FFFFFF
##18256D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18256d;
/* rgb */ color: rgb(24, 37, 109);
/* oklch */ color: oklch(30.6% 0.125 269.4);
Tailwind
colors: {
  custom: {
    50: '#635f98',
    500: '#18256d',
    950: '#000000',
  },
}
SCSS
$custom: #18256d;
$custom-light: #635f98;
$custom-dark: #000000;
JSON
{
  "hex": "#18256d",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 230.824,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30584,
    "c": 0.12531,
    "h": 269.4
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#18256D
secondary
#A3933E
accent
#CE41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18256D

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

Preview Lab → · Contrast checker → · Palette generator →

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