#2E28A1#2E28A1

#2E28A1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.185 H 275.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2E28A1
RGBrgb(46, 40, 161)
HSLhsl(243, 60%, 39%)
HSVhsv(243, 75%, 63%)
CMYKcmyk(71.4%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.78, 41.91, -63.89)
CIE-LCHlch(25.78, 76.41, 303.26°)
OKLaboklab(37.82% 0.0164 -0.1847)
OKLCHoklch(37.82% 0.185 275.1)
XYZxyz(8.3164, 4.6708, 34.1746)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A1 #9BA128
analogous
#285FA1 #2E28A1 #6B28A1
triadic
#2E28A1 #A12E28 #28A12E
tetradic
#2E28A1 #A1285F #9BA128 #28A16B
square
#2E28A1 #A1285F #9BA128 #28A16B
split-complementary
#2E28A1 #A16B28 #5FA128
monochromatic
#12103F #201C70 #2E28A1 #4039CE #6F6ADA

Accessibility & contrast

On white

10.86
#2E28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28A1
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A1#FFFFFF#000000##FFFFFF
##2E28A11.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e28a1;
/* rgb */ color: rgb(46, 40, 161);
/* oklch */ color: oklch(37.8% 0.185 275.1);
Tailwind
colors: {
  custom: {
    50: '#7964be',
    500: '#2e28a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a1;
$custom-light: #7964be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a1",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 242.975,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37815,
    "c": 0.18546,
    "h": 275.1
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#2E28A1
secondary
#BCC065
accent
#E344DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2E28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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