#2B28A3#2B28A3

#2B28A3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.189 H 273.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2B28A3
RGBrgb(43, 40, 163)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 75%, 64%)
CMYKcmyk(73.6%, 75.5%, 0%, 36.1%)
CIE-LABlab(25.79, 42.28, -65.09)
CIE-LCHlch(25.79, 77.62, 303.00°)
OKLaboklab(37.83% 0.0122 -0.1883)
OKLCHoklch(37.83% 0.189 273.7)
XYZxyz(8.3637, 4.6747, 35.1048)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28A3 #A0A328
analogous
#2863A3 #2B28A3 #6828A3
triadic
#2B28A3 #A32B28 #28A32B
tetradic
#2B28A3 #A32863 #A0A328 #28A368
square
#2B28A3 #A32863 #A0A328 #28A368
split-complementary
#2B28A3 #A36828 #63A328
monochromatic
#111041 #1E1C72 #2B28A3 #3D3ACF #6E6BDB

Accessibility & contrast

On white

10.85
#2B28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B28A3
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28A3#FFFFFF#000000##FFFFFF
##2B28A31.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b28a3;
/* rgb */ color: rgb(43, 40, 163);
/* oklch */ color: oklch(37.8% 0.189 273.7);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2b28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b28a3;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28a3",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 241.463,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37833,
    "c": 0.1887,
    "h": 273.7
  },
  "luminance": 0.04676
}

Semantic roles & 50–950 ramp

primary
#2B28A3
secondary
#BFC166
accent
#E444E0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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