#2E2980#2E2980

#2E2980 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.141 H 278.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E2980
RGBrgb(46, 41, 128)
HSLhsl(243, 51%, 33%)
HSVhsv(243, 68%, 50%)
CMYKcmyk(64.1%, 68%, 0%, 49.8%)
CIE-LABlab(22.74, 30.03, -48.45)
CIE-LCHlch(22.74, 57.00, 301.79°)
OKLaboklab(34.65% 0.0212 -0.1396)
OKLCHoklch(34.65% 0.141 278.6)
XYZxyz(5.8147, 3.7248, 20.8304)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2980 #7B8029
analogous
#294F80 #2E2980 #592980
triadic
#2E2980 #802E29 #29802E
tetradic
#2E2980 #80294F #7B8029 #298059
square
#2E2980 #80294F #7B8029 #298059
split-complementary
#2E2980 #805929 #4F8029
monochromatic
#0D0B23 #1D1A52 #2E2980 #3F38AE #6059CA

Accessibility & contrast

On white

12.03
#2E2980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E2980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2980
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2980#FFFFFF#000000##FFFFFF
##2E29801.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2980;
/* rgb */ color: rgb(46, 41, 128);
/* oklch */ color: oklch(34.7% 0.141 278.6);
Tailwind
colors: {
  custom: {
    50: '#7163a6',
    500: '#2e2980',
    950: '#000000',
  },
}
SCSS
$custom: #2e2980;
$custom-light: #7163a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2980",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 243.448,
    "s": 51.479,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34653,
    "c": 0.14119,
    "h": 278.6
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#2E2980
secondary
#AAAF55
accent
#DB4DD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2980

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

Preview Lab → · Contrast checker → · Palette generator →

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