#2D28B5#2D28B5

#2D28B5 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.210 H 273.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2D28B5
RGBrgb(45, 40, 181)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 71%)
CMYKcmyk(75.1%, 77.9%, 0%, 29%)
CIE-LABlab(27.87, 48.33, -72.46)
CIE-LCHlch(27.87, 87.10, 303.70°)
OKLaboklab(39.92% 0.0109 -0.2097)
OKLCHoklch(39.92% 0.21 273)
XYZxyz(10.1787, 5.4106, 44.2150)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B5 #B0B528
analogous
#2869B5 #2D28B5 #7328B5
triadic
#2D28B5 #B52D28 #28B52D
tetradic
#2D28B5 #B52869 #B0B528 #28B573
square
#2D28B5 #B52869 #B0B528 #28B573
split-complementary
#2D28B5 #B57328 #69B528
monochromatic
#141251 #211D83 #2D28B5 #4A44D6 #7A77E1

Accessibility & contrast

On white

10.08
#2D28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28B5
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B5#FFFFFF#000000##FFFFFF
##2D28B51.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003BB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d28b5;
/* rgb */ color: rgb(45, 40, 181);
/* oklch */ color: oklch(39.9% 0.210 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d65cd',
    500: '#2d28b5',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b5;
$custom-light: #7d65cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b5",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 242.128,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.39916,
    "c": 0.20996,
    "h": 273
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#2D28B5
secondary
#C5C870
accent
#E741E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2D28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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