#2818A0#2818A0

#2818A0 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.4% C 0.199 H 274.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2818A0
RGBrgb(40, 24, 160)
HSLhsl(247, 74%, 36%)
HSVhsv(247, 85%, 63%)
CMYKcmyk(75%, 85%, 0%, 37.3%)
CIE-LABlab(22.45, 49.15, -68.80)
CIE-LCHlch(22.45, 84.56, 305.54°)
OKLaboklab(35.35% 0.0152 -0.1989)
OKLCHoklch(35.35% 0.199 274.4)
XYZxyz(7.5448, 3.6417, 33.5562)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2818A0 #90A018
analogous
#184CA0 #2818A0 #6C18A0
triadic
#2818A0 #A02818 #18A028
tetradic
#2818A0 #A0184C #90A018 #18A06C
square
#2818A0 #A0184C #90A018 #18A06C
split-complementary
#2818A0 #A06C18 #4CA018
monochromatic
#0D0836 #1B106B #2818A0 #3520D5 #604EE4

Accessibility & contrast

On white

12.15
#2818A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2818A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2818A0
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2818A0#FFFFFF#000000##FFFFFF
##2818A01.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2818a0;
/* rgb */ color: rgb(40, 24, 160);
/* oklch */ color: oklch(35.4% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#775bbe',
    500: '#2818a0',
    950: '#000000',
  },
}
SCSS
$custom: #2818a0;
$custom-light: #775bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2818a0",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 247.059,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3535,
    "c": 0.19949,
    "h": 274.4
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2818A0
secondary
#B8C64D
accent
#F137DB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2818A0

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

Preview Lab → · Contrast checker → · Palette generator →

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