#2D28A2#2D28A2

#2D28A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.187 H 274.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2D28A2
RGBrgb(45, 40, 162)
HSLhsl(242, 60%, 40%)
HSVhsv(242, 75%, 64%)
CMYKcmyk(72.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.81, 42.14, -64.44)
CIE-LCHlch(25.81, 76.99, 303.18°)
OKLaboklab(37.85% 0.0149 -0.1864)
OKLCHoklch(37.85% 0.187 274.6)
XYZxyz(8.3604, 4.6833, 34.6388)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A2 #9DA228
analogous
#2860A2 #2D28A2 #6A28A2
triadic
#2D28A2 #A22D28 #28A22D
tetradic
#2D28A2 #A22860 #9DA228 #28A26A
square
#2D28A2 #A22860 #9DA228 #28A26A
split-complementary
#2D28A2 #A26A28 #60A228
monochromatic
#121040 #1F1C71 #2D28A2 #3F39CE #6F6ADA

Accessibility & contrast

On white

10.84
#2D28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A2
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A2#FFFFFF#000000##FFFFFF
##2D28A21.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d28a2;
/* rgb */ color: rgb(45, 40, 162);
/* oklch */ color: oklch(37.9% 0.187 274.6);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2d28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a2;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a2",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 242.459,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37855,
    "c": 0.18695,
    "h": 274.6
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#2D28A2
secondary
#BDC165
accent
#E444DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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