#2A28B8#2A28B8

#2A28B8 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.214 H 271.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2A28B8
RGBrgb(42, 40, 184)
HSLhsl(241, 64%, 44%)
HSVhsv(241, 78%, 72%)
CMYKcmyk(77.2%, 78.3%, 0%, 27.8%)
CIE-LABlab(28.03, 49.07, -73.99)
CIE-LCHlch(28.03, 88.78, 303.55°)
OKLaboklab(40.08% 0.0067 -0.2142)
OKLCHoklch(40.08% 0.214 271.8)
XYZxyz(10.3625, 5.4694, 45.8477)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28B8 #B6B828
analogous
#286EB8 #2A28B8 #7228B8
triadic
#2A28B8 #B82A28 #28B82A
tetradic
#2A28B8 #B8286E #B6B828 #28B872
square
#2A28B8 #B8286E #B6B828 #28B872
split-complementary
#2A28B8 #B87228 #6EB828
monochromatic
#131253 #1F1D86 #2A28B8 #4846D7 #7A79E2

Accessibility & contrast

On white

10.03
#2A28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28B8
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28B8#FFFFFF#000000##FFFFFF
##2A28B81.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a28b8;
/* rgb */ color: rgb(42, 40, 184);
/* oklch */ color: oklch(40.1% 0.214 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d65cf',
    500: '#2a28b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a28b8;
$custom-light: #7d65cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28b8",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 240.833,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40078,
    "c": 0.21428,
    "h": 271.8
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#2A28B8
secondary
#C8CA72
accent
#E741E5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2A28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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