#18128C#18128C

#18128C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.3% C 0.185 H 270.4°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#18128C
RGBrgb(24, 18, 140)
HSLhsl(243, 77%, 31%)
HSVhsv(243, 87%, 55%)
CMYKcmyk(82.9%, 87.1%, 0%, 45.1%)
CIE-LABlab(18.01, 44.74, -63.85)
CIE-LCHlch(18.01, 77.97, 305.02°)
OKLaboklab(31.3% 0.0014 -0.1847)
OKLCHoklch(31.3% 0.185 270.4)
XYZxyz(5.3250, 2.5196, 25.0115)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18128C #868C12
analogous
#12498C #18128C #55128C
triadic
#18128C #8C1812 #128C18
tetradic
#18128C #8C1249 #868C12 #128C55
square
#18128C #8C1249 #868C12 #128C55
split-complementary
#18128C #8C5512 #498C12
monochromatic
#050420 #0F0B56 #18128C #2119C2 #3C34E5

Accessibility & contrast

On white

13.96
#18128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#18128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18128C
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18128C#FFFFFF#000000##FFFFFF
##18128C1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18128c;
/* rgb */ color: rgb(24, 18, 140);
/* oklch */ color: oklch(31.3% 0.185 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e55af',
    500: '#18128c',
    950: '#000000',
  },
}
SCSS
$custom: #18128c;
$custom-light: #6e55af;
$custom-dark: #000000;
JSON
{
  "hex": "#18128c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 242.951,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.313,
    "c": 0.18476,
    "h": 270.4
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#18128C
secondary
#BAC039
accent
#F434EA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #18128C

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

Preview Lab → · Contrast checker → · Palette generator →

#18128C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva