#2818B3#2818B3

#2818B3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.221 H 272.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2818B3
RGBrgb(40, 24, 179)
HSLhsl(246, 76%, 40%)
HSVhsv(246, 87%, 70%)
CMYKcmyk(77.7%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.82, 54.74, -76.34)
CIE-LCHlch(24.82, 93.94, 305.64°)
OKLaboklab(37.65% 0.0097 -0.2207)
OKLCHoklch(37.65% 0.221 272.5)
XYZxyz(9.3357, 4.3580, 42.9883)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2818B3 #A3B318
analogous
#1855B3 #2818B3 #7618B3
triadic
#2818B3 #B32818 #18B328
tetradic
#2818B3 #B31855 #A3B318 #18B376
square
#2818B3 #B31855 #A3B318 #18B376
split-complementary
#2818B3 #B37618 #55B318
monochromatic
#100A47 #1C117D #2818B3 #3A26E2 #6B5CE9

Accessibility & contrast

On white

11.22
#2818B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2818B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2818B3
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2818B3#FFFFFF#000000##FFFFFF
##2818B31.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2818b3;
/* rgb */ color: rgb(40, 24, 179);
/* oklch */ color: oklch(37.7% 0.221 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ccb',
    500: '#2818b3',
    950: '#000000',
  },
}
SCSS
$custom: #2818b3;
$custom-light: #7c5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2818b3",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 246.194,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37651,
    "c": 0.22094,
    "h": 272.5
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#2818B3
secondary
#C1CD5A
accent
#F335DF
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2818B3

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

Preview Lab → · Contrast checker → · Palette generator →

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