#2E2795#2E2795

#2E2795 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.171 H 276.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2E2795
RGBrgb(46, 39, 149)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 58%)
CMYKcmyk(69.1%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.33, 38.48, -58.94)
CIE-LCHlch(24.33, 70.39, 303.14°)
OKLaboklab(36.41% 0.0193 -0.1703)
OKLCHoklch(36.41% 0.171 276.5)
XYZxyz(7.2753, 4.2012, 28.8554)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2795 #8E9527
analogous
#275795 #2E2795 #652795
triadic
#2E2795 #952E27 #27952E
tetradic
#2E2795 #952757 #8E9527 #279565
square
#2E2795 #952757 #8E9527 #279565
split-complementary
#2E2795 #956527 #579527
monochromatic
#100E34 #1F1A64 #2E2795 #3D34C6 #6861D6

Accessibility & contrast

On white

11.41
#2E2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2795
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2795#FFFFFF#000000##FFFFFF
##2E27951.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2795;
/* rgb */ color: rgb(46, 39, 149);
/* oklch */ color: oklch(36.4% 0.171 276.5);
Tailwind
colors: {
  custom: {
    50: '#7663b5',
    500: '#2e2795',
    950: '#000000',
  },
}
SCSS
$custom: #2e2795;
$custom-light: #7663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2795",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 243.818,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.17138,
    "h": 276.5
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#2E2795
secondary
#B5BB5D
accent
#E246D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2795

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

Preview Lab → · Contrast checker → · Palette generator →

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