#2E2180#2E2180

#2E2180 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.151 H 280.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2E2180
RGBrgb(46, 33, 128)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 50%)
CMYKcmyk(64.1%, 74.2%, 0%, 49.8%)
CIE-LABlab(20.93, 34.98, -51.42)
CIE-LCHlch(20.93, 62.19, 304.23°)
OKLaboklab(33.35% 0.0278 -0.1483)
OKLCHoklch(33.35% 0.151 280.6)
XYZxyz(5.5656, 3.2267, 20.7474)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2180 #738021
analogous
#214480 #2E2180 #5E2180
triadic
#2E2180 #802E21 #21802E
tetradic
#2E2180 #802144 #738021 #21805E
square
#2E2180 #802144 #738021 #21805E
split-complementary
#2E2180 #805E21 #448021
monochromatic
#0B081F #1D144F #2E2180 #3F2EB1 #5D4BD1

Accessibility & contrast

On white

12.76
#2E2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2180
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2180#FFFFFF#000000##FFFFFF
##2E21801.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2180;
/* rgb */ color: rgb(46, 33, 128);
/* oklch */ color: oklch(33.4% 0.151 280.6);
Tailwind
colors: {
  custom: {
    50: '#725ea6',
    500: '#2e2180',
    950: '#000000',
  },
}
SCSS
$custom: #2e2180;
$custom-light: #725ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2180",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 248.211,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.15087,
    "h": 280.6
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#2E2180
secondary
#A4B34A
accent
#E246CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E2180

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

Preview Lab → · Contrast checker → · Palette generator →

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