#2D28BB#2D28BB

#2D28BB is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.217 H 272.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2D28BB
RGBrgb(45, 40, 187)
HSLhsl(242, 65%, 45%)
HSVhsv(242, 79%, 73%)
CMYKcmyk(75.9%, 78.6%, 0%, 26.7%)
CIE-LABlab(28.54, 50.23, -74.91)
CIE-LCHlch(28.54, 90.20, 303.84°)
OKLaboklab(40.58% 0.0096 -0.2168)
OKLCHoklch(40.58% 0.217 272.5)
XYZxyz(10.8076, 5.6622, 47.5274)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28BB #B6BB28
analogous
#286DBB #2D28BB #7728BB
triadic
#2D28BB #BB2D28 #28BB2D
tetradic
#2D28BB #BB286D #B6BB28 #28BB77
square
#2D28BB #BB286D #B6BB28 #28BB77
split-complementary
#2D28BB #BB7728 #6DBB28
monochromatic
#151256 #211D89 #2D28BB #4D48D8 #7E7BE3

Accessibility & contrast

On white

9.85
#2D28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28BB
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28BB#FFFFFF#000000##FFFFFF
##2D28BB1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d28bb;
/* rgb */ color: rgb(45, 40, 187);
/* oklch */ color: oklch(40.6% 0.217 272.5);
Tailwind
colors: {
  custom: {
    50: '#7e65d1',
    500: '#2d28bb',
    950: '#000000',
  },
}
SCSS
$custom: #2d28bb;
$custom-light: #7e65d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28bb",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 242.041,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.21701,
    "h": 272.5
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#2D28BB
secondary
#C8CB74
accent
#E840E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2D28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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