#2E28A3#2E28A3

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

Color values

HEX#2E28A3
RGBrgb(46, 40, 163)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 75%, 64%)
CMYKcmyk(71.8%, 75.5%, 0%, 36.1%)
CIE-LABlab(25.99, 42.57, -64.76)
CIE-LCHlch(25.99, 77.50, 303.32°)
OKLaboklab(38.03% 0.0159 -0.1873)
OKLCHoklch(38.03% 0.188 274.9)
XYZxyz(8.4942, 4.7420, 35.1109)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A3 #9DA328
analogous
#285FA3 #2E28A3 #6C28A3
triadic
#2E28A3 #A32E28 #28A32E
tetradic
#2E28A3 #A3285F #9DA328 #28A36C
square
#2E28A3 #A3285F #9DA328 #28A36C
split-complementary
#2E28A3 #A36C28 #5FA328
monochromatic
#121041 #201C72 #2E28A3 #413ACF #706BDB

Accessibility & contrast

On white

10.78
#2E28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E28A3
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A3#FFFFFF#000000##FFFFFF
##2E28A31.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e28a3;
/* rgb */ color: rgb(46, 40, 163);
/* oklch */ color: oklch(38.0% 0.188 274.9);
Tailwind
colors: {
  custom: {
    50: '#7964bf',
    500: '#2e28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a3;
$custom-light: #7964bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a3",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 242.927,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.18794,
    "h": 274.9
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#2E28A3
secondary
#BDC166
accent
#E444DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2E28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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