#2A28A5#2A28A5

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

Color values

HEX#2A28A5
RGBrgb(42, 40, 165)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 65%)
CMYKcmyk(74.5%, 75.8%, 0%, 35.3%)
CIE-LABlab(25.94, 42.85, -66.06)
CIE-LCHlch(25.94, 78.74, 302.97°)
OKLaboklab(37.99% 0.0105 -0.1911)
OKLCHoklch(37.99% 0.191 273.2)
XYZxyz(8.5029, 4.7256, 36.0540)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A5 #A3A528
analogous
#2864A5 #2A28A5 #6828A5
triadic
#2A28A5 #A52A28 #28A52A
tetradic
#2A28A5 #A52864 #A3A528 #28A568
square
#2A28A5 #A52864 #A3A528 #28A568
split-complementary
#2A28A5 #A56828 #64A528
monochromatic
#111042 #1D1C74 #2A28A5 #3D3BCF #6E6CDB

Accessibility & contrast

On white

10.80
#2A28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A5
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A5#FFFFFF#000000##FFFFFF
##2A28A51.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a28a5;
/* rgb */ color: rgb(42, 40, 165);
/* oklch */ color: oklch(38.0% 0.191 273.2);
Tailwind
colors: {
  custom: {
    50: '#7864c1',
    500: '#2a28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a5;
$custom-light: #7864c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a5",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 240.96,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37987,
    "c": 0.19143,
    "h": 273.2
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#2A28A5
secondary
#C0C267
accent
#E444E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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