#2D28AC#2D28AC

#2D28AC is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.199 H 273.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2D28AC
RGBrgb(45, 40, 172)
HSLhsl(242, 62%, 42%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(73.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(26.89, 45.43, -68.71)
CIE-LCHlch(26.89, 82.37, 303.47°)
OKLaboklab(38.93% 0.0128 -0.1988)
OKLCHoklch(38.93% 0.199 273.7)
XYZxyz(9.2849, 5.0531, 39.5077)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28AC #A7AC28
analogous
#2865AC #2D28AC #6F28AC
triadic
#2D28AC #AC2D28 #28AC2D
tetradic
#2D28AC #AC2865 #A7AC28 #28AC6F
square
#2D28AC #AC2865 #A7AC28 #28AC6F
split-complementary
#2D28AC #AC6F28 #65AC28
monochromatic
#131149 #201C7A #2D28AC #443FD2 #7571DE

Accessibility & contrast

On white

10.44
#2D28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2D28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28AC
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28AC#FFFFFF#000000##FFFFFF
##2D28AC1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d28ac;
/* rgb */ color: rgb(45, 40, 172);
/* oklch */ color: oklch(38.9% 0.199 273.7);
Tailwind
colors: {
  custom: {
    50: '#7b64c6',
    500: '#2d28ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d28ac;
$custom-light: #7b64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28ac",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 242.273,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.3893,
    "c": 0.19919,
    "h": 273.7
  },
  "luminance": 0.05054
}

Semantic roles & 50–950 ramp

primary
#2D28AC
secondary
#C1C56B
accent
#E542DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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