#2D28B2#2D28B2

#2D28B2 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.6% C 0.206 H 273.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2D28B2
RGBrgb(45, 40, 178)
HSLhsl(242, 63%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(74.7%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.54, 47.37, -71.22)
CIE-LCHlch(27.54, 85.53, 303.63°)
OKLaboklab(39.59% 0.0115 -0.2061)
OKLCHoklch(39.59% 0.206 273.2)
XYZxyz(9.8742, 5.2888, 42.6113)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B2 #ADB228
analogous
#2868B2 #2D28B2 #7228B2
triadic
#2D28B2 #B22D28 #28B22D
tetradic
#2D28B2 #B22868 #ADB228 #28B272
square
#2D28B2 #B22868 #ADB228 #28B272
split-complementary
#2D28B2 #B27228 #68B228
monochromatic
#14124E #201D80 #2D28B2 #4843D5 #7875E0

Accessibility & contrast

On white

10.20
#2D28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2D28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28B2
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B2#FFFFFF#000000##FFFFFF
##2D28B21.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d28b2;
/* rgb */ color: rgb(45, 40, 178);
/* oklch */ color: oklch(39.6% 0.206 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c65ca',
    500: '#2d28b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b2;
$custom-light: #7c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b2",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 242.174,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39586,
    "c": 0.20639,
    "h": 273.2
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#2D28B2
secondary
#C4C76F
accent
#E641E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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