#2818B4#2818B4

#2818B4 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.8% C 0.222 H 272.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2818B4
RGBrgb(40, 24, 180)
HSLhsl(246, 76%, 40%)
HSVhsv(246, 87%, 71%)
CMYKcmyk(77.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(24.95, 55.03, -76.73)
CIE-LCHlch(24.95, 94.42, 305.65°)
OKLaboklab(37.77% 0.0095 -0.2219)
OKLCHoklch(37.77% 0.222 272.4)
XYZxyz(9.4372, 4.3986, 43.5228)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2818B4 #A4B418
analogous
#1856B4 #2818B4 #7618B4
triadic
#2818B4 #B42818 #18B428
tetradic
#2818B4 #B41856 #A4B418 #18B476
square
#2818B4 #B41856 #A4B418 #18B476
split-complementary
#2818B4 #B47618 #56B418
monochromatic
#100A48 #1C117E #2818B4 #3A27E2 #6B5DE9

Accessibility & contrast

On white

11.17
#2818B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2818B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2818B4
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2818B4#FFFFFF#000000##FFFFFF
##2818B41.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2818b4;
/* rgb */ color: rgb(40, 24, 180);
/* oklch */ color: oklch(37.8% 0.222 272.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ccc',
    500: '#2818b4',
    950: '#000000',
  },
}
SCSS
$custom: #2818b4;
$custom-light: #7c5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2818b4",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 246.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.22206,
    "h": 272.4
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#2818B4
secondary
#C1CD5B
accent
#F335E0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2818B4

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

Preview Lab → · Contrast checker → · Palette generator →

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