#2D28B3#2D28B3

#2D28B3 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.7% C 0.208 H 273.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2D28B3
RGBrgb(45, 40, 179)
HSLhsl(242, 63%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(74.9%, 77.7%, 0%, 29.8%)
CIE-LABlab(27.65, 47.69, -71.63)
CIE-LCHlch(27.65, 86.05, 303.65°)
OKLaboklab(39.7% 0.0113 -0.2073)
OKLCHoklch(39.7% 0.208 273.1)
XYZxyz(9.9749, 5.3291, 43.1420)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28B3 #AEB328
analogous
#2869B3 #2D28B3 #7228B3
triadic
#2D28B3 #B32D28 #28B32D
tetradic
#2D28B3 #B32869 #AEB328 #28B372
square
#2D28B3 #B32869 #AEB328 #28B372
split-complementary
#2D28B3 #B37228 #69B328
monochromatic
#14124F #201D81 #2D28B3 #4843D5 #7975E0

Accessibility & contrast

On white

10.16
#2D28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D28B3
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28B3#FFFFFF#000000##FFFFFF
##2D28B31.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d28b3;
/* rgb */ color: rgb(45, 40, 179);
/* oklch */ color: oklch(39.7% 0.208 273.1);
Tailwind
colors: {
  custom: {
    50: '#7c65cb',
    500: '#2d28b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d28b3;
$custom-light: #7c65cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28b3",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 242.158,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39696,
    "c": 0.20759,
    "h": 273.1
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#2D28B3
secondary
#C4C86F
accent
#E641E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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