#2A28A4#2A28A4

#2A28A4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.190 H 273.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2A28A4
RGBrgb(42, 40, 164)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 64%)
CMYKcmyk(74.4%, 75.6%, 0%, 35.7%)
CIE-LABlab(25.83, 42.52, -65.63)
CIE-LCHlch(25.83, 78.20, 302.94°)
OKLaboklab(37.88% 0.0107 -0.1899)
OKLCHoklch(37.88% 0.19 273.2)
XYZxyz(8.4122, 4.6893, 35.5765)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A4 #A2A428
analogous
#2864A4 #2A28A4 #6828A4
triadic
#2A28A4 #A42A28 #28A42A
tetradic
#2A28A4 #A42864 #A2A428 #28A468
square
#2A28A4 #A42864 #A2A428 #28A468
split-complementary
#2A28A4 #A46828 #64A428
monochromatic
#111042 #1D1C73 #2A28A4 #3D3ACF #6D6BDB

Accessibility & contrast

On white

10.84
#2A28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A4
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A4#FFFFFF#000000##FFFFFF
##2A28A41.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a28a4;
/* rgb */ color: rgb(42, 40, 164);
/* oklch */ color: oklch(37.9% 0.190 273.2);
Tailwind
colors: {
  custom: {
    50: '#7864c0',
    500: '#2a28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a4;
$custom-light: #7864c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a4",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 240.968,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.37879,
    "c": 0.1902,
    "h": 273.2
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#2A28A4
secondary
#C0C166
accent
#E444E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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