#2E2B80#2E2B80

#2E2B80 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.139 H 278.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2E2B80
RGBrgb(46, 43, 128)
HSLhsl(242, 50%, 34%)
HSVhsv(242, 66%, 50%)
CMYKcmyk(64.1%, 66.4%, 0%, 49.8%)
CIE-LABlab(23.23, 28.74, -47.65)
CIE-LCHlch(23.23, 55.65, 301.09°)
OKLaboklab(35.01% 0.0194 -0.1373)
OKLCHoklch(35.01% 0.139 278)
XYZxyz(5.8856, 3.8667, 20.8541)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B80 #7D802B
analogous
#2B5280 #2E2B80 #582B80
triadic
#2E2B80 #802E2B #2B802E
tetradic
#2E2B80 #802B52 #7D802B #2B8058
square
#2E2B80 #802B52 #7D802B #2B8058
split-complementary
#2E2B80 #80582B #52802B
monochromatic
#0D0C24 #1E1C52 #2E2B80 #3E3AAE #615DC9

Accessibility & contrast

On white

11.84
#2E2B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B80
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B80#FFFFFF#000000##FFFFFF
##2E2B801.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2b80;
/* rgb */ color: rgb(46, 43, 128);
/* oklch */ color: oklch(35.0% 0.139 278.0);
Tailwind
colors: {
  custom: {
    50: '#7165a6',
    500: '#2e2b80',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b80;
$custom-light: #7165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b80",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 242.118,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35006,
    "c": 0.13863,
    "h": 278
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#2E2B80
secondary
#ABAE58
accent
#D94FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2B80

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

Preview Lab → · Contrast checker → · Palette generator →

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