#2E2C78#2E2C78

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

Color values

HEX#2E2C78
RGBrgb(46, 44, 120)
HSLhsl(242, 46%, 32%)
HSVhsv(242, 63%, 47%)
CMYKcmyk(61.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.79, 25.23, -43.30)
CIE-LCHlch(22.79, 50.12, 300.23°)
OKLaboklab(34.47% 0.019 -0.1245)
OKLCHoklch(34.47% 0.126 278.7)
XYZxyz(5.4165, 3.7379, 18.2017)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2C78 #76782C
analogous
#2C5078 #2E2C78 #542C78
triadic
#2E2C78 #782E2C #2C782E
tetradic
#2E2C78 #782C50 #76782C #2C7854
square
#2E2C78 #782C50 #76782C #2C7854
split-complementary
#2E2C78 #78542C #50782C
monochromatic
#0C0B1E #1D1C4B #2E2C78 #3F3CA5 #5E5BC3

Accessibility & contrast

On white

12.02
#2E2C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E2C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2C78
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2C78#FFFFFF#000000##FFFFFF
##2E2C781.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2c78;
/* rgb */ color: rgb(46, 44, 120);
/* oklch */ color: oklch(34.5% 0.126 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f65a0',
    500: '#2e2c78',
    950: '#000000',
  },
}
SCSS
$custom: #2e2c78;
$custom-light: #6f65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2c78",
  "rgb": {
    "r": 46,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 241.579,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.12592,
    "h": 278.7
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#2E2C78
secondary
#A7A957
accent
#D652D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2E2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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