#2D28B6#2D28B6

#2D28B6 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.211 H 272.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2D28B6
RGBrgb(45, 40, 182)
HSLhsl(242, 64%, 44%)
HSVhsv(242, 78%, 71%)
CMYKcmyk(75.3%, 78%, 0%, 28.6%)
CIE-LABlab(27.98, 48.65, -72.87)
CIE-LCHlch(27.98, 87.62, 303.73°)
OKLaboklab(40.03% 0.0107 -0.2109)
OKLCHoklch(40.03% 0.211 272.9)
XYZxyz(10.2817, 5.4518, 44.7573)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B6 #B1B628
analogous
#286AB6 #2D28B6 #7428B6
triadic
#2D28B6 #B62D28 #28B62D
tetradic
#2D28B6 #B6286A #B1B628 #28B674
square
#2D28B6 #B6286A #B1B628 #28B674
split-complementary
#2D28B6 #B67428 #6AB628
monochromatic
#141252 #211D84 #2D28B6 #4A45D6 #7B77E1

Accessibility & contrast

On white

10.04
#2D28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28B6
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B6#FFFFFF#000000##FFFFFF
##2D28B61.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BA
Deuteranopia (green-blind)
#003BB4
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d28b6;
/* rgb */ color: rgb(45, 40, 182);
/* oklch */ color: oklch(40.0% 0.211 272.9);
Tailwind
colors: {
  custom: {
    50: '#7d65cd',
    500: '#2d28b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b6;
$custom-light: #7d65cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b6",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 242.113,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.21114,
    "h": 272.9
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#2D28B6
secondary
#C6C971
accent
#E741E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2D28B6

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

Preview Lab → · Contrast checker → · Palette generator →

#2D28B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva