#2A28B3#2A28B3

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

Color values

HEX#2A28B3
RGBrgb(42, 40, 179)
HSLhsl(241, 63%, 43%)
HSVhsv(241, 78%, 70%)
CMYKcmyk(76.5%, 77.7%, 0%, 29.8%)
CIE-LABlab(27.47, 47.46, -71.94)
CIE-LCHlch(27.47, 86.18, 303.41°)
OKLaboklab(39.52% 0.0077 -0.2082)
OKLCHoklch(39.52% 0.208 272.1)
XYZxyz(9.8476, 5.2634, 43.1360)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28B3 #B1B328
analogous
#286CB3 #2A28B3 #6F28B3
triadic
#2A28B3 #B32A28 #28B32A
tetradic
#2A28B3 #B3286C #B1B328 #28B36F
square
#2A28B3 #B3286C #B1B328 #28B36F
split-complementary
#2A28B3 #B36F28 #6CB328
monochromatic
#13124F #1E1D81 #2A28B3 #4543D5 #7775E0

Accessibility & contrast

On white

10.23
#2A28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28B3
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28B3#FFFFFF#000000##FFFFFF
##2A28B31.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.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: #2a28b3;
/* rgb */ color: rgb(42, 40, 179);
/* oklch */ color: oklch(39.5% 0.208 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b65cb',
    500: '#2a28b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a28b3;
$custom-light: #7b65cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28b3",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 240.863,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39521,
    "c": 0.20836,
    "h": 272.1
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#2A28B3
secondary
#C6C86F
accent
#E641E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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