#2B28C4#2B28C4

#2B28C4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.5% C 0.228 H 271.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2B28C4
RGBrgb(43, 40, 196)
HSLhsl(241, 66%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.1%, 79.6%, 0%, 23.1%)
CIE-LABlab(29.45, 52.92, -78.72)
CIE-LCHlch(29.45, 94.86, 303.91°)
OKLaboklab(41.48% 0.0053 -0.2279)
OKLCHoklch(41.48% 0.228 271.3)
XYZxyz(11.7155, 6.0154, 52.7575)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28C4 #C1C428
analogous
#2873C4 #2B28C4 #7928C4
triadic
#2B28C4 #C42B28 #28C42B
tetradic
#2B28C4 #C42873 #C1C428 #28C479
square
#2B28C4 #C42873 #C1C428 #28C479
split-complementary
#2B28C4 #C47928 #73C428
monochromatic
#15135E #201E91 #2B28C4 #514EDB #8381E5

Accessibility & contrast

On white

9.53
#2B28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B28C4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28C4#FFFFFF#000000##FFFFFF
##2B28C41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC8
Deuteranopia (green-blind)
#003DC1
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b28c4;
/* rgb */ color: rgb(43, 40, 196);
/* oklch */ color: oklch(41.5% 0.228 271.3);
Tailwind
colors: {
  custom: {
    50: '#8066d7',
    500: '#2b28c4',
    950: '#000000',
  },
}
SCSS
$custom: #2b28c4;
$custom-light: #8066d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28c4",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 241.154,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41482,
    "c": 0.22794,
    "h": 271.3
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#2B28C4
secondary
#CCCE7A
accent
#E93FE6
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2B28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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