#2E28A4#2E28A4

#2E28A4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.189 H 274.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2E28A4
RGBrgb(46, 40, 164)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 64%)
CMYKcmyk(72%, 75.6%, 0%, 35.7%)
CIE-LABlab(26.09, 42.90, -65.19)
CIE-LCHlch(26.09, 78.04, 303.35°)
OKLaboklab(38.13% 0.0157 -0.1885)
OKLCHoklch(38.13% 0.189 274.8)
XYZxyz(8.5841, 4.7779, 35.5846)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A4 #9EA428
analogous
#2860A4 #2E28A4 #6C28A4
triadic
#2E28A4 #A42E28 #28A42E
tetradic
#2E28A4 #A42860 #9EA428 #28A46C
square
#2E28A4 #A42860 #9EA428 #28A46C
split-complementary
#2E28A4 #A46C28 #60A428
monochromatic
#121042 #201C73 #2E28A4 #413ACF #716BDB

Accessibility & contrast

On white

10.74
#2E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28A4
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A4#FFFFFF#000000##FFFFFF
##2E28A41.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e28a4;
/* rgb */ color: rgb(46, 40, 164);
/* oklch */ color: oklch(38.1% 0.189 274.8);
Tailwind
colors: {
  custom: {
    50: '#7964c0',
    500: '#2e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a4;
$custom-light: #7964c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a4",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 242.903,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.18918,
    "h": 274.8
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#2E28A4
secondary
#BDC166
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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