#2E2880#2E2880

#2E2880 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.142 H 278.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2E2880
RGBrgb(46, 40, 128)
HSLhsl(244, 52%, 33%)
HSVhsv(244, 69%, 50%)
CMYKcmyk(64.1%, 68.8%, 0%, 49.8%)
CIE-LABlab(22.50, 30.67, -48.84)
CIE-LCHlch(22.50, 57.67, 302.13°)
OKLaboklab(34.48% 0.022 -0.1407)
OKLCHoklch(34.48% 0.142 278.9)
XYZxyz(5.7805, 3.6565, 20.8190)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2880 #7A8028
analogous
#284E80 #2E2880 #5A2880
triadic
#2E2880 #802E28 #28802E
tetradic
#2E2880 #80284E #7A8028 #28805A
square
#2E2880 #80284E #7A8028 #28805A
split-complementary
#2E2880 #805A28 #4E8028
monochromatic
#0C0B23 #1D1951 #2E2880 #3F37AF #6058CB

Accessibility & contrast

On white

12.13
#2E2880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E2880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2880
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2880#FFFFFF#000000##FFFFFF
##2E28801.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2880;
/* rgb */ color: rgb(46, 40, 128);
/* oklch */ color: oklch(34.5% 0.142 278.9);
Tailwind
colors: {
  custom: {
    50: '#7162a6',
    500: '#2e2880',
    950: '#000000',
  },
}
SCSS
$custom: #2e2880;
$custom-light: #7162a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2880",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 244.091,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.14246,
    "h": 278.9
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#2E2880
secondary
#AAB054
accent
#DC4CD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2880

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

Preview Lab → · Contrast checker → · Palette generator →

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