#2E2780#2E2780

#2E2780 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.144 H 279.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2E2780
RGBrgb(46, 39, 128)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 70%, 50%)
CMYKcmyk(64.1%, 69.5%, 0%, 49.8%)
CIE-LABlab(22.27, 31.31, -49.22)
CIE-LCHlch(22.27, 58.34, 302.46°)
OKLaboklab(34.31% 0.0229 -0.1419)
OKLCHoklch(34.31% 0.144 279.2)
XYZxyz(5.7473, 3.5900, 20.8080)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2780 #798027
analogous
#274C80 #2E2780 #5A2780
triadic
#2E2780 #802E27 #27802E
tetradic
#2E2780 #80274C #798027 #27805A
square
#2E2780 #80274C #798027 #27805A
split-complementary
#2E2780 #805A27 #4C8027
monochromatic
#0C0A22 #1D1951 #2E2780 #3F35AF #5F56CB

Accessibility & contrast

On white

12.22
#2E2780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E2780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2780
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2780#FFFFFF#000000##FFFFFF
##2E27801.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2780;
/* rgb */ color: rgb(46, 39, 128);
/* oklch */ color: oklch(34.3% 0.144 279.2);
Tailwind
colors: {
  custom: {
    50: '#7162a6',
    500: '#2e2780',
    950: '#000000',
  },
}
SCSS
$custom: #2e2780;
$custom-light: #7162a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2780",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 244.719,
    "s": 53.293,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3431,
    "c": 0.14371,
    "h": 279.2
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#2E2780
secondary
#A9B053
accent
#DD4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2780

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

Preview Lab → · Contrast checker → · Palette generator →

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