#2A28B1#2A28B1

#2A28B1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.206 H 272.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2A28B1
RGBrgb(42, 40, 177)
HSLhsl(241, 63%, 43%)
HSVhsv(241, 77%, 69%)
CMYKcmyk(76.3%, 77.4%, 0%, 30.6%)
CIE-LABlab(27.25, 46.81, -71.11)
CIE-LCHlch(27.25, 85.13, 303.35°)
OKLaboklab(39.3% 0.0081 -0.2058)
OKLCHoklch(39.3% 0.206 272.3)
XYZxyz(9.6468, 5.1831, 42.0785)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28B1 #AFB128
analogous
#286AB1 #2A28B1 #6F28B1
triadic
#2A28B1 #B12A28 #28B12A
tetradic
#2A28B1 #B1286A #AFB128 #28B16F
square
#2A28B1 #B1286A #AFB128 #28B16F
split-complementary
#2A28B1 #B16F28 #6AB128
monochromatic
#12114D #1E1D7F #2A28B1 #4442D4 #7574E0

Accessibility & contrast

On white

10.31
#2A28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28B1
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28B1#FFFFFF#000000##FFFFFF
##2A28B11.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a28b1;
/* rgb */ color: rgb(42, 40, 177);
/* oklch */ color: oklch(39.3% 0.206 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b64ca',
    500: '#2a28b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a28b1;
$custom-light: #7b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28b1",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 240.876,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.393,
    "c": 0.20598,
    "h": 272.3
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#2A28B1
secondary
#C6C76E
accent
#E642E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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