#18256E#18256E

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

Color values

HEX#18256E
RGBrgb(24, 37, 110)
HSLhsl(231, 64%, 26%)
HSVhsv(231, 78%, 43%)
CMYKcmyk(78.2%, 66.4%, 0%, 56.9%)
CIE-LABlab(18.55, 22.81, -43.85)
CIE-LCHlch(18.55, 49.43, 297.48°)
OKLaboklab(30.68% -0.0013 -0.1267)
OKLCHoklch(30.68% 0.127 269.4)
XYZxyz(3.8518, 2.6427, 15.0559)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256E #6E6118
analogous
#18506E #18256E #36186E
triadic
#18256E #6E1825 #256E18
tetradic
#18256E #6E1850 #6E6118 #186E36
square
#18256E #6E1850 #6E6118 #186E36
split-complementary
#18256E #6E3618 #506E18
monochromatic
#050819 #0D143C #18256E #2336A0 #2F47D2

Accessibility & contrast

On white

13.74
#18256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18256E
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256E#FFFFFF#000000##FFFFFF
##18256E1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18256e;
/* rgb */ color: rgb(24, 37, 110);
/* oklch */ color: oklch(30.7% 0.127 269.4);
Tailwind
colors: {
  custom: {
    50: '#645f98',
    500: '#18256e',
    950: '#000000',
  },
}
SCSS
$custom: #18256e;
$custom-light: #645f98;
$custom-dark: #000000;
JSON
{
  "hex": "#18256e",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 230.93,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30683,
    "c": 0.12676,
    "h": 269.4
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18256E

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

Preview Lab → · Contrast checker → · Palette generator →

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