#2D28A4#2D28A4

#2D28A4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.189 H 274.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2D28A4
RGBrgb(45, 40, 164)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(72.6%, 75.6%, 0%, 35.7%)
CIE-LABlab(26.02, 42.80, -65.30)
CIE-LCHlch(26.02, 78.08, 303.24°)
OKLaboklab(38.07% 0.0145 -0.1889)
OKLCHoklch(38.07% 0.189 274.4)
XYZxyz(8.5396, 4.7550, 35.5825)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A4 #9FA428
analogous
#2861A4 #2D28A4 #6B28A4
triadic
#2D28A4 #A42D28 #28A42D
tetradic
#2D28A4 #A42861 #9FA428 #28A46B
square
#2D28A4 #A42861 #9FA428 #28A46B
split-complementary
#2D28A4 #A46B28 #61A428
monochromatic
#121042 #1F1C73 #2D28A4 #403ACF #706BDB

Accessibility & contrast

On white

10.76
#2D28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A4
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A4#FFFFFF#000000##FFFFFF
##2D28A41.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d28a4;
/* rgb */ color: rgb(45, 40, 164);
/* oklch */ color: oklch(38.1% 0.189 274.4);
Tailwind
colors: {
  custom: {
    50: '#7964c0',
    500: '#2d28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a4;
$custom-light: #7964c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a4",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 242.419,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38068,
    "c": 0.18942,
    "h": 274.4
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#2D28A4
secondary
#BEC166
accent
#E444DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2D28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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