#18256F#18256F

#18256F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.128 H 269.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#18256F
RGBrgb(24, 37, 111)
HSLhsl(231, 64%, 26%)
HSVhsv(231, 78%, 44%)
CMYKcmyk(78.4%, 66.7%, 0%, 56.5%)
CIE-LABlab(18.65, 23.21, -44.34)
CIE-LCHlch(18.65, 50.05, 297.63°)
OKLaboklab(30.78% -0.0013 -0.1282)
OKLCHoklch(30.78% 0.128 269.4)
XYZxyz(3.9065, 2.6646, 15.3443)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256F #6F6218
analogous
#18516F #18256F #37186F
triadic
#18256F #6F1825 #256F18
tetradic
#18256F #6F1851 #6F6218 #186F37
square
#18256F #6F1851 #6F6218 #186F37
split-complementary
#18256F #6F3718 #516F18
monochromatic
#050819 #0D143D #18256F #2336A1 #2F48D2

Accessibility & contrast

On white

13.70
#18256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18256F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256F#FFFFFF#000000##FFFFFF
##18256F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18256f;
/* rgb */ color: rgb(24, 37, 111);
/* oklch */ color: oklch(30.8% 0.128 269.4);
Tailwind
colors: {
  custom: {
    50: '#645f99',
    500: '#18256f',
    950: '#000000',
  },
}
SCSS
$custom: #18256f;
$custom-light: #645f99;
$custom-dark: #000000;
JSON
{
  "hex": "#18256f",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 231.034,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30783,
    "c": 0.1282,
    "h": 269.4
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#18256F
secondary
#A5953E
accent
#CE40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18256F

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

Preview Lab → · Contrast checker → · Palette generator →

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