#2E28A5#2E28A5

#2E28A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.190 H 274.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2E28A5
RGBrgb(46, 40, 165)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 65%)
CMYKcmyk(72.1%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.20, 43.23, -65.62)
CIE-LCHlch(26.20, 78.58, 303.38°)
OKLaboklab(38.24% 0.0155 -0.1898)
OKLCHoklch(38.24% 0.19 274.7)
XYZxyz(8.6748, 4.8142, 36.0621)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A5 #9FA528
analogous
#2860A5 #2E28A5 #6C28A5
triadic
#2E28A5 #A52E28 #28A52E
tetradic
#2E28A5 #A52860 #9FA528 #28A56C
square
#2E28A5 #A52860 #9FA528 #28A56C
split-complementary
#2E28A5 #A56C28 #60A528
monochromatic
#131042 #201C74 #2E28A5 #423BCF #716CDB

Accessibility & contrast

On white

10.70
#2E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E28A5
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A5#FFFFFF#000000##FFFFFF
##2E28A51.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e28a5;
/* rgb */ color: rgb(46, 40, 165);
/* oklch */ color: oklch(38.2% 0.190 274.7);
Tailwind
colors: {
  custom: {
    50: '#7964c1',
    500: '#2e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a5;
$custom-light: #7964c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a5",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 242.88,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3824,
    "c": 0.1904,
    "h": 274.7
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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