#2822B3#2822B3

#2822B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.7% C 0.214 H 272.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2822B3
RGBrgb(40, 34, 179)
HSLhsl(242, 68%, 42%)
HSVhsv(242, 81%, 70%)
CMYKcmyk(77.7%, 81%, 0%, 29.8%)
CIE-LABlab(26.30, 50.37, -73.88)
CIE-LCHlch(26.30, 89.42, 304.29°)
OKLaboklab(38.67% 0.0073 -0.2138)
OKLCHoklch(38.67% 0.214 272)
XYZxyz(9.5810, 4.8488, 43.0700)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822B3 #ADB322
analogous
#2265B3 #2822B3 #7122B3
triadic
#2822B3 #B32822 #22B328
tetradic
#2822B3 #B32265 #ADB322 #22B371
square
#2822B3 #B32265 #ADB322 #22B371
split-complementary
#2822B3 #B37122 #65B322
monochromatic
#110E4C #1D1880 #2822B3 #3F39D9 #716CE3

Accessibility & contrast

On white

10.66
#2822B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2822B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822B3
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822B3#FFFFFF#000000##FFFFFF
##2822B31.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2822b3;
/* rgb */ color: rgb(40, 34, 179);
/* oklch */ color: oklch(38.7% 0.214 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b61cb',
    500: '#2822b3',
    950: '#000000',
  },
}
SCSS
$custom: #2822b3;
$custom-light: #7b61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2822b3",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 242.483,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.3867,
    "c": 0.21395,
    "h": 272
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#2822B3
secondary
#C5C968
accent
#EB3DE4
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2822B3

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

Preview Lab → · Contrast checker → · Palette generator →

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