#2E2772#2E2772

#2E2772 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.124 H 281.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2E2772
RGBrgb(46, 39, 114)
HSLhsl(246, 49%, 30%)
HSVhsv(246, 66%, 45%)
CMYKcmyk(59.6%, 65.8%, 0%, 55.3%)
CIE-LABlab(21.01, 26.44, -42.36)
CIE-LCHlch(21.01, 49.94, 301.97°)
OKLaboklab(33% 0.0245 -0.1217)
OKLCHoklch(33% 0.124 281.4)
XYZxyz(4.8885, 3.2465, 16.2854)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2772 #6B7227
analogous
#274572 #2E2772 #542772
triadic
#2E2772 #722E27 #27722E
tetradic
#2E2772 #722745 #6B7227 #277254
square
#2E2772 #722745 #6B7227 #277254
split-complementary
#2E2772 #725427 #457227
monochromatic
#090817 #1C1744 #2E2772 #4037A0 #5B50C3

Accessibility & contrast

On white

12.73
#2E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2772
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2772#FFFFFF#000000##FFFFFF
##2E27721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#093948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2772;
/* rgb */ color: rgb(46, 39, 114);
/* oklch */ color: oklch(33.0% 0.124 281.4);
Tailwind
colors: {
  custom: {
    50: '#6e619b',
    500: '#2e2772',
    950: '#000000',
  },
}
SCSS
$custom: #2e2772;
$custom-light: #6e619b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2772",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 245.6,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.33004,
    "c": 0.12417,
    "h": 281.4
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#2E2772
secondary
#9DA450
accent
#D94FCC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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