#2D28B8#2D28B8

#2D28B8 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.213 H 272.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2D28B8
RGBrgb(45, 40, 184)
HSLhsl(242, 64%, 44%)
HSVhsv(242, 78%, 72%)
CMYKcmyk(75.5%, 78.3%, 0%, 27.8%)
CIE-LABlab(28.21, 49.28, -73.69)
CIE-LCHlch(28.21, 88.65, 303.77°)
OKLaboklab(40.25% 0.0102 -0.2132)
OKLCHoklch(40.25% 0.214 272.7)
XYZxyz(10.4898, 5.5351, 45.8536)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B8 #B3B828
analogous
#286BB8 #2D28B8 #7528B8
triadic
#2D28B8 #B82D28 #28B82D
tetradic
#2D28B8 #B8286B #B3B828 #28B875
square
#2D28B8 #B8286B #B3B828 #28B875
split-complementary
#2D28B8 #B87528 #6BB828
monochromatic
#141253 #211D86 #2D28B8 #4B46D7 #7C79E2

Accessibility & contrast

On white

9.97
#2D28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28B8
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B8#FFFFFF#000000##FFFFFF
##2D28B81.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d28b8;
/* rgb */ color: rgb(45, 40, 184);
/* oklch */ color: oklch(40.2% 0.213 272.7);
Tailwind
colors: {
  custom: {
    50: '#7e65cf',
    500: '#2d28b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b8;
$custom-light: #7e65cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b8",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 242.083,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.2135,
    "h": 272.7
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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