#2E28A2#2E28A2

#2E28A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.187 H 275.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2E28A2
RGBrgb(46, 40, 162)
HSLhsl(243, 60%, 40%)
HSVhsv(243, 75%, 64%)
CMYKcmyk(71.6%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.88, 42.24, -64.32)
CIE-LCHlch(25.88, 76.95, 303.29°)
OKLaboklab(37.92% 0.0162 -0.186)
OKLCHoklch(37.92% 0.187 275)
XYZxyz(8.4049, 4.7063, 34.6409)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A2 #9CA228
analogous
#285FA2 #2E28A2 #6B28A2
triadic
#2E28A2 #A22E28 #28A22E
tetradic
#2E28A2 #A2285F #9CA228 #28A26B
square
#2E28A2 #A2285F #9CA228 #28A26B
split-complementary
#2E28A2 #A26B28 #5FA228
monochromatic
#121040 #201C71 #2E28A2 #4039CE #706ADA

Accessibility & contrast

On white

10.82
#2E28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28A2
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A2#FFFFFF#000000##FFFFFF
##2E28A21.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e28a2;
/* rgb */ color: rgb(46, 40, 162);
/* oklch */ color: oklch(37.9% 0.187 275.0);
Tailwind
colors: {
  custom: {
    50: '#7964bf',
    500: '#2e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a2;
$custom-light: #7964bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a2",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 242.951,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37921,
    "c": 0.1867,
    "h": 275
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#2E28A2
secondary
#BCC165
accent
#E444DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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