#2A28AF#2A28AF

#2A28AF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.204 H 272.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2A28AF
RGBrgb(42, 40, 175)
HSLhsl(241, 63%, 42%)
HSVhsv(241, 77%, 69%)
CMYKcmyk(76%, 77.1%, 0%, 31.4%)
CIE-LABlab(27.03, 46.15, -70.28)
CIE-LCHlch(27.03, 84.08, 303.29°)
OKLaboklab(39.08% 0.0086 -0.2034)
OKLCHoklch(39.08% 0.204 272.4)
XYZxyz(9.4489, 5.1040, 41.0363)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28AF #ADAF28
analogous
#286AAF #2A28AF #6E28AF
triadic
#2A28AF #AF2A28 #28AF2A
tetradic
#2A28AF #AF286A #ADAF28 #28AF6E
square
#2A28AF #AF286A #ADAF28 #28AF6E
split-complementary
#2A28AF #AF6E28 #6AAF28
monochromatic
#12114B #1E1D7D #2A28AF #4341D4 #7473DF

Accessibility & contrast

On white

10.39
#2A28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28AF
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28AF#FFFFFF#000000##FFFFFF
##2A28AF1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a28af;
/* rgb */ color: rgb(42, 40, 175);
/* oklch */ color: oklch(39.1% 0.204 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2a28af',
    950: '#000000',
  },
}
SCSS
$custom: #2a28af;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28af",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 240.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.20359,
    "h": 272.4
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#2A28AF
secondary
#C5C66D
accent
#E642E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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