#2818A1#2818A1

#2818A1 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.5% C 0.201 H 274.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2818A1
RGBrgb(40, 24, 161)
HSLhsl(247, 74%, 36%)
HSVhsv(247, 85%, 63%)
CMYKcmyk(75.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.57, 49.45, -69.21)
CIE-LCHlch(22.57, 85.06, 305.55°)
OKLaboklab(35.47% 0.0149 -0.2001)
OKLCHoklch(35.47% 0.201 274.3)
XYZxyz(7.6326, 3.6768, 34.0187)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2818A1 #91A118
analogous
#184DA1 #2818A1 #6D18A1
triadic
#2818A1 #A12818 #18A128
tetradic
#2818A1 #A1184D #91A118 #18A16D
square
#2818A1 #A1184D #91A118 #18A16D
split-complementary
#2818A1 #A16D18 #4DA118
monochromatic
#0E0836 #1B106C #2818A1 #3520D6 #604FE5

Accessibility & contrast

On white

12.10
#2818A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2818A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2818A1
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2818A1#FFFFFF#000000##FFFFFF
##2818A11.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2818a1;
/* rgb */ color: rgb(40, 24, 161);
/* oklch */ color: oklch(35.5% 0.201 274.3);
Tailwind
colors: {
  custom: {
    50: '#785bbe',
    500: '#2818a1',
    950: '#000000',
  },
}
SCSS
$custom: #2818a1;
$custom-light: #785bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2818a1",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 247.007,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.20064,
    "h": 274.3
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#2818A1
secondary
#B9C74E
accent
#F137DB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2818A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2818A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva