#2E2397#2E2397

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

Color values

HEX#2E2397
RGBrgb(46, 35, 151)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(69.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.73, 41.42, -61.16)
CIE-LCHlch(23.73, 73.86, 304.11°)
OKLaboklab(36.05% 0.0213 -0.1767)
OKLCHoklch(36.05% 0.178 276.9)
XYZxyz(7.3118, 4.0166, 29.6621)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2397 #8C9723
analogous
#235297 #2E2397 #682397
triadic
#2E2397 #972E23 #23972E
tetradic
#2E2397 #972352 #8C9723 #239768
square
#2E2397 #972352 #8C9723 #239768
split-complementary
#2E2397 #976823 #529723
monochromatic
#100C34 #1F1765 #2E2397 #3D2FC9 #675BD9

Accessibility & contrast

On white

11.64
#2E2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2397
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2397#FFFFFF#000000##FFFFFF
##2E23971.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2397;
/* rgb */ color: rgb(46, 35, 151);
/* oklch */ color: oklch(36.0% 0.178 276.9);
Tailwind
colors: {
  custom: {
    50: '#7760b7',
    500: '#2e2397',
    950: '#000000',
  },
}
SCSS
$custom: #2e2397;
$custom-light: #7760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2397",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 245.69,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.17801,
    "h": 276.9
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#2E2397
secondary
#B4BE58
accent
#E542D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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