#2D28A9#2D28A9

#2D28A9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.196 H 273.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2D28A9
RGBrgb(45, 40, 169)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 76%, 66%)
CMYKcmyk(73.4%, 76.3%, 0%, 33.7%)
CIE-LABlab(26.56, 44.45, -67.44)
CIE-LCHlch(26.56, 80.77, 303.39°)
OKLaboklab(38.61% 0.0134 -0.1951)
OKLCHoklch(38.61% 0.196 273.9)
XYZxyz(9.0000, 4.9391, 38.0075)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A9 #A4A928
analogous
#2863A9 #2D28A9 #6D28A9
triadic
#2D28A9 #A92D28 #28A92D
tetradic
#2D28A9 #A92863 #A4A928 #28A96D
square
#2D28A9 #A92863 #A4A928 #28A96D
split-complementary
#2D28A9 #A96D28 #63A928
monochromatic
#131146 #201C78 #2D28A9 #433DD1 #736FDD

Accessibility & contrast

On white

10.56
#2D28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A9
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A9#FFFFFF#000000##FFFFFF
##2D28A91.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d28a9;
/* rgb */ color: rgb(45, 40, 169);
/* oklch */ color: oklch(38.6% 0.196 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a64c4',
    500: '#2d28a9',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a9;
$custom-light: #7a64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a9",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 242.326,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.19555,
    "h": 273.9
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#2D28A9
secondary
#C0C469
accent
#E543DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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