#2D28A0#2D28A0

#2D28A0 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.184 H 274.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2D28A0
RGBrgb(45, 40, 160)
HSLhsl(243, 60%, 39%)
HSVhsv(243, 75%, 63%)
CMYKcmyk(71.9%, 75%, 0%, 37.3%)
CIE-LABlab(25.60, 41.47, -63.57)
CIE-LCHlch(25.60, 75.90, 303.12°)
OKLaboklab(37.64% 0.0153 -0.1838)
OKLCHoklch(37.64% 0.184 274.7)
XYZxyz(8.1840, 4.6127, 33.7099)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A0 #9BA028
analogous
#285FA0 #2D28A0 #6928A0
triadic
#2D28A0 #A02D28 #28A02D
tetradic
#2D28A0 #A0285F #9BA028 #28A069
square
#2D28A0 #A0285F #9BA028 #28A069
split-complementary
#2D28A0 #A06928 #5FA028
monochromatic
#11103E #1F1C6F #2D28A0 #3E38CD #6E69D9

Accessibility & contrast

On white

10.92
#2D28A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D28A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A0
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A0#FFFFFF#000000##FFFFFF
##2D28A01.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d28a0;
/* rgb */ color: rgb(45, 40, 160);
/* oklch */ color: oklch(37.6% 0.184 274.7);
Tailwind
colors: {
  custom: {
    50: '#7864bd',
    500: '#2d28a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a0;
$custom-light: #7864bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a0",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 242.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37642,
    "c": 0.18446,
    "h": 274.7
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#2D28A0
secondary
#BCC064
accent
#E345DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D28A0

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

Preview Lab → · Contrast checker → · Palette generator →

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