#181258#181258

#181258 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.9% C 0.119 H 277.1°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#181258
RGBrgb(24, 18, 88)
HSLhsl(245, 66%, 21%)
HSVhsv(245, 80%, 35%)
CMYKcmyk(72.7%, 79.5%, 0%, 65.5%)
CIE-LABlab(11.49, 27.24, -40.88)
CIE-LCHlch(11.49, 49.12, 303.68°)
OKLaboklab(24.88% 0.0148 -0.1181)
OKLCHoklch(24.88% 0.119 277.1)
XYZxyz(2.3539, 1.3312, 9.3635)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181258 #525812
analogous
#122F58 #181258 #3B1258
triadic
#181258 #581812 #125818
tetradic
#181258 #58122F #525812 #12583B
square
#181258 #58122F #525812 #12583B
split-complementary
#181258 #583B12 #2F5812
monochromatic
#070519 #0A0825 #181258 #261C8B #3427BE

Accessibility & contrast

On white

16.59
#181258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#181258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181258
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181258#FFFFFF#000000##FFFFFF
##1812581.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001B57
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181258;
/* rgb */ color: rgb(24, 18, 88);
/* oklch */ color: oklch(24.9% 0.119 277.1);
Tailwind
colors: {
  custom: {
    50: '#605188',
    500: '#181258',
    950: '#000000',
  },
}
SCSS
$custom: #181258;
$custom-light: #605188;
$custom-dark: #000000;
JSON
{
  "hex": "#181258",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 245.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24877,
    "c": 0.11902,
    "h": 277.1
  },
  "luminance": 0.01331
}

Semantic roles & 50–950 ramp

primary
#181258
secondary
#899135
accent
#E93FDA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #181258

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

Preview Lab → · Contrast checker → · Palette generator →

#181258 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva