#2A28B2#2A28B2

#2A28B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.4% C 0.207 H 272.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2A28B2
RGBrgb(42, 40, 178)
HSLhsl(241, 63%, 43%)
HSVhsv(241, 78%, 70%)
CMYKcmyk(76.4%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.36, 47.13, -71.52)
CIE-LCHlch(27.36, 85.66, 303.38°)
OKLaboklab(39.41% 0.0079 -0.207)
OKLCHoklch(39.41% 0.207 272.2)
XYZxyz(9.7468, 5.2231, 42.6053)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28B2 #B0B228
analogous
#286BB2 #2A28B2 #6F28B2
triadic
#2A28B2 #B22A28 #28B22A
tetradic
#2A28B2 #B2286B #B0B228 #28B26F
square
#2A28B2 #B2286B #B0B228 #28B26F
split-complementary
#2A28B2 #B26F28 #6BB228
monochromatic
#12124E #1E1D80 #2A28B2 #4543D5 #7675E0

Accessibility & contrast

On white

10.27
#2A28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A28B2
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28B2#FFFFFF#000000##FFFFFF
##2A28B21.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a28b2;
/* rgb */ color: rgb(42, 40, 178);
/* oklch */ color: oklch(39.4% 0.207 272.2);
Tailwind
colors: {
  custom: {
    50: '#7b65ca',
    500: '#2a28b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a28b2;
$custom-light: #7b65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28b2",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 240.87,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.3941,
    "c": 0.20717,
    "h": 272.2
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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