#2D28A5#2D28A5

#2D28A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.191 H 274.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2D28A5
RGBrgb(45, 40, 165)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 65%)
CMYKcmyk(72.7%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.13, 43.13, -65.73)
CIE-LCHlch(26.13, 78.62, 303.27°)
OKLaboklab(38.17% 0.0143 -0.1901)
OKLCHoklch(38.17% 0.191 274.3)
XYZxyz(8.6303, 4.7912, 36.0600)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A5 #A0A528
analogous
#2861A5 #2D28A5 #6B28A5
triadic
#2D28A5 #A52D28 #28A52D
tetradic
#2D28A5 #A52861 #A0A528 #28A56B
square
#2D28A5 #A52861 #A0A528 #28A56B
split-complementary
#2D28A5 #A56B28 #61A528
monochromatic
#121042 #201C74 #2D28A5 #413BCF #706CDB

Accessibility & contrast

On white

10.72
#2D28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2D28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A5
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A5#FFFFFF#000000##FFFFFF
##2D28A51.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d28a5;
/* rgb */ color: rgb(45, 40, 165);
/* oklch */ color: oklch(38.2% 0.191 274.3);
Tailwind
colors: {
  custom: {
    50: '#7964c1',
    500: '#2d28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a5;
$custom-light: #7964c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a5",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 242.4,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38175,
    "c": 0.19065,
    "h": 274.3
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#2D28A5
secondary
#BEC267
accent
#E444DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2D28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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