#2E2680#2E2680

#2E2680 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.145 H 279.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2E2680
RGBrgb(46, 38, 128)
HSLhsl(245, 54%, 33%)
HSVhsv(245, 70%, 50%)
CMYKcmyk(64.1%, 70.3%, 0%, 49.8%)
CIE-LABlab(22.03, 31.94, -49.60)
CIE-LCHlch(22.03, 59.00, 302.78°)
OKLaboklab(34.14% 0.0237 -0.143)
OKLCHoklch(34.14% 0.145 279.4)
XYZxyz(5.7149, 3.5251, 20.7972)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2680 #788026
analogous
#264B80 #2E2680 #5B2680
triadic
#2E2680 #802E26 #26802E
tetradic
#2E2680 #80264B #788026 #26805B
square
#2E2680 #80264B #788026 #26805B
split-complementary
#2E2680 #805B26 #4B8026
monochromatic
#0C0A22 #1D1851 #2E2680 #3F34AF #5F54CC

Accessibility & contrast

On white

12.32
#2E2680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E2680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2680
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2680#FFFFFF#000000##FFFFFF
##2E26801.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2680;
/* rgb */ color: rgb(46, 38, 128);
/* oklch */ color: oklch(34.1% 0.145 279.4);
Tailwind
colors: {
  custom: {
    50: '#7161a6',
    500: '#2e2680',
    950: '#000000',
  },
}
SCSS
$custom: #2e2680;
$custom-light: #7161a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2680",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 128
  },
  "hsl": {
    "h": 245.333,
    "s": 54.217,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34143,
    "c": 0.14495,
    "h": 279.4
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#2E2680
secondary
#A8B151
accent
#DE4AD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2680

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

Preview Lab → · Contrast checker → · Palette generator →

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