#18148F#18148F

#18148F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.187 H 270.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#18148F
RGBrgb(24, 20, 143)
HSLhsl(242, 75%, 32%)
HSVhsv(242, 86%, 56%)
CMYKcmyk(83.2%, 86%, 0%, 43.9%)
CIE-LABlab(18.70, 44.79, -64.57)
CIE-LCHlch(18.70, 78.59, 304.75°)
OKLaboklab(31.89% 0.0003 -0.1869)
OKLCHoklch(31.89% 0.187 270.1)
XYZxyz(5.5831, 2.6770, 26.2037)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18148F #8B8F14
analogous
#144E8F #18148F #56148F
triadic
#18148F #8F1814 #148F18
tetradic
#18148F #8F144E #8B8F14 #148F56
square
#18148F #8F144E #8B8F14 #148F56
split-complementary
#18148F #8F5614 #4E8F14
monochromatic
#060524 #0F0C59 #18148F #211CC5 #3F3AE3

Accessibility & contrast

On white

13.68
#18148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18148F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18148F#FFFFFF#000000##FFFFFF
##18148F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18148f;
/* rgb */ color: rgb(24, 20, 143);
/* oklch */ color: oklch(31.9% 0.187 270.1);
Tailwind
colors: {
  custom: {
    50: '#6f56b1',
    500: '#18148f',
    950: '#000000',
  },
}
SCSS
$custom: #18148f;
$custom-light: #6f56b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18148f",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 241.951,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3189,
    "c": 0.18688,
    "h": 270.1
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#18148F
secondary
#BEC33C
accent
#F236EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18148F

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

Preview Lab → · Contrast checker → · Palette generator →

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