#2E2997#2E2997

#2E2997 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.172 H 275.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2E2997
RGBrgb(46, 41, 151)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 73%, 59%)
CMYKcmyk(69.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.95, 37.97, -59.14)
CIE-LCHlch(24.95, 70.28, 302.70°)
OKLaboklab(36.92% 0.0177 -0.1709)
OKLCHoklch(36.92% 0.172 275.9)
XYZxyz(7.5037, 4.4004, 29.7261)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2997 #929729
analogous
#295B97 #2E2997 #652997
triadic
#2E2997 #972E29 #29972E
tetradic
#2E2997 #97295B #929729 #299765
square
#2E2997 #97295B #929729 #299765
split-complementary
#2E2997 #976529 #5B9729
monochromatic
#110F37 #1F1C67 #2E2997 #3D36C7 #6A65D5

Accessibility & contrast

On white

11.17
#2E2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2997
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2997#FFFFFF#000000##FFFFFF
##2E29971.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e2997;
/* rgb */ color: rgb(46, 41, 151);
/* oklch */ color: oklch(36.9% 0.172 275.9);
Tailwind
colors: {
  custom: {
    50: '#7664b7',
    500: '#2e2997',
    950: '#000000',
  },
}
SCSS
$custom: #2e2997;
$custom-light: #7664b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2997",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 242.727,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36921,
    "c": 0.17178,
    "h": 275.9
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#2E2997
secondary
#B7BB61
accent
#E147DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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