#2E2791#2E2791

#2E2791 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.166 H 276.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2E2791
RGBrgb(46, 39, 145)
HSLhsl(244, 58%, 36%)
HSVhsv(244, 73%, 57%)
CMYKcmyk(68.3%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.92, 37.13, -57.14)
CIE-LCHlch(23.92, 68.14, 303.02°)
OKLaboklab(36% 0.0201 -0.165)
OKLCHoklch(36% 0.166 276.9)
XYZxyz(6.9614, 4.0756, 27.2024)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2791 #8A9127
analogous
#275591 #2E2791 #632791
triadic
#2E2791 #912E27 #27912E
tetradic
#2E2791 #912755 #8A9127 #279163
square
#2E2791 #912755 #8A9127 #279163
split-complementary
#2E2791 #916327 #559127
monochromatic
#0F0D31 #1F1A61 #2E2791 #3D34C1 #665FD4

Accessibility & contrast

On white

11.57
#2E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2791
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2791#FFFFFF#000000##FFFFFF
##2E27911.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2791;
/* rgb */ color: rgb(46, 39, 145);
/* oklch */ color: oklch(36.0% 0.166 276.9);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2e2791',
    950: '#000000',
  },
}
SCSS
$custom: #2e2791;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2791",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 243.962,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36001,
    "c": 0.16625,
    "h": 276.9
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#2E2791
secondary
#B3B95B
accent
#E147D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E2791

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

Preview Lab → · Contrast checker → · Palette generator →

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