#2E2080#2E2080

#2E2080 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.152 H 280.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2E2080
RGBrgb(46, 32, 128)
HSLhsl(249, 60%, 31%)
HSVhsv(249, 75%, 50%)
CMYKcmyk(64.1%, 75%, 0%, 49.8%)
CIE-LABlab(20.72, 35.57, -51.76)
CIE-LCHlch(20.72, 62.80, 304.49°)
OKLaboklab(33.2% 0.0285 -0.1493)
OKLCHoklch(33.2% 0.152 280.8)
XYZxyz(5.5383, 3.1720, 20.7383)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2080 #728020
analogous
#204280 #2E2080 #5E2080
triadic
#2E2080 #802E20 #20802E
tetradic
#2E2080 #802042 #728020 #20805E
square
#2E2080 #802042 #728020 #20805E
split-complementary
#2E2080 #805E20 #428020
monochromatic
#0B081E #1C144F #2E2080 #402CB1 #5D49D1

Accessibility & contrast

On white

12.85
#2E2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2080
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2080#FFFFFF#000000##FFFFFF
##2E20801.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2080;
/* rgb */ color: rgb(46, 32, 128);
/* oklch */ color: oklch(33.2% 0.152 280.8);
Tailwind
colors: {
  custom: {
    50: '#725da6',
    500: '#2e2080',
    950: '#000000',
  },
}
SCSS
$custom: #2e2080;
$custom-light: #725da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2080",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 248.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.15199,
    "h": 280.8
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#2E2080
secondary
#A3B349
accent
#E345CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E2080

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

Preview Lab → · Contrast checker → · Palette generator →

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