#18256A#18256A

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

Color values

HEX#18256A
RGBrgb(24, 37, 106)
HSLhsl(230, 63%, 25%)
HSVhsv(230, 77%, 42%)
CMYKcmyk(77.4%, 65.1%, 0%, 58.4%)
CIE-LABlab(18.18, 21.20, -41.86)
CIE-LCHlch(18.18, 46.93, 296.86°)
OKLaboklab(30.29% -0.0012 -0.1209)
OKLCHoklch(30.29% 0.121 269.4)
XYZxyz(3.6389, 2.5576, 13.9348)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18256A #6A5D18
analogous
#184E6A #18256A #34186A
triadic
#18256A #6A1825 #256A18
tetradic
#18256A #6A184E #6A5D18 #186A34
square
#18256A #6A184E #6A5D18 #186A34
split-complementary
#18256A #6A3418 #4E6A18
monochromatic
#060919 #0D1438 #18256A #23369C #2F48CE

Accessibility & contrast

On white

13.89
#18256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18256A
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18256A#FFFFFF#000000##FFFFFF
##18256A1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18256a;
/* rgb */ color: rgb(24, 37, 106);
/* oklch */ color: oklch(30.3% 0.121 269.4);
Tailwind
colors: {
  custom: {
    50: '#635f95',
    500: '#18256a',
    950: '#000000',
  },
}
SCSS
$custom: #18256a;
$custom-light: #635f95;
$custom-dark: #000000;
JSON
{
  "hex": "#18256a",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 230.488,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3029,
    "c": 0.12093,
    "h": 269.4
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#18256A
secondary
#A0903E
accent
#CC42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18256A

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

Preview Lab → · Contrast checker → · Palette generator →

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