#2A28A3#2A28A3

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

Color values

HEX#2A28A3
RGBrgb(42, 40, 163)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 75%, 64%)
CMYKcmyk(74.2%, 75.5%, 0%, 36.1%)
CIE-LABlab(25.72, 42.18, -65.20)
CIE-LCHlch(25.72, 77.66, 302.90°)
OKLaboklab(37.77% 0.0109 -0.1887)
OKLCHoklch(37.77% 0.189 273.3)
XYZxyz(8.3223, 4.6533, 35.1028)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A3 #A1A328
analogous
#2863A3 #2A28A3 #6828A3
triadic
#2A28A3 #A32A28 #28A32A
tetradic
#2A28A3 #A32863 #A1A328 #28A368
square
#2A28A3 #A32863 #A1A328 #28A368
split-complementary
#2A28A3 #A36828 #63A328
monochromatic
#111041 #1D1C72 #2A28A3 #3C3ACF #6D6BDB

Accessibility & contrast

On white

10.88
#2A28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A3
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A3#FFFFFF#000000##FFFFFF
##2A28A31.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.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: #2a28a3;
/* rgb */ color: rgb(42, 40, 163);
/* oklch */ color: oklch(37.8% 0.189 273.3);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2a28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a3;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a3",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 240.976,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37771,
    "c": 0.18897,
    "h": 273.3
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#2A28A3
secondary
#C0C166
accent
#E444E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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