#2D28B4#2D28B4

#2D28B4 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.8% C 0.209 H 273.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2D28B4
RGBrgb(45, 40, 180)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 71%)
CMYKcmyk(75%, 77.8%, 0%, 29.4%)
CIE-LABlab(27.76, 48.01, -72.05)
CIE-LCHlch(27.76, 86.58, 303.68°)
OKLaboklab(39.81% 0.0111 -0.2085)
OKLCHoklch(39.81% 0.209 273)
XYZxyz(10.0764, 5.3697, 43.6766)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B4 #AFB428
analogous
#2869B4 #2D28B4 #7328B4
triadic
#2D28B4 #B42D28 #28B42D
tetradic
#2D28B4 #B42869 #AFB428 #28B473
square
#2D28B4 #B42869 #AFB428 #28B473
split-complementary
#2D28B4 #B47328 #69B428
monochromatic
#141250 #201D82 #2D28B4 #4944D5 #7A76E1

Accessibility & contrast

On white

10.12
#2D28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2D28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28B4
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B4#FFFFFF#000000##FFFFFF
##2D28B41.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#003BB2
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d28b4;
/* rgb */ color: rgb(45, 40, 180);
/* oklch */ color: oklch(39.8% 0.209 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d65cc',
    500: '#2d28b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b4;
$custom-light: #7d65cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b4",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 242.143,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39806,
    "c": 0.20878,
    "h": 273
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#2D28B4
secondary
#C5C870
accent
#E741E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2D28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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