#2E2395#2E2395

#2E2395 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.176 H 277.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2E2395
RGBrgb(46, 35, 149)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 77%, 58%)
CMYKcmyk(69.1%, 76.5%, 0%, 41.6%)
CIE-LABlab(23.51, 40.76, -60.28)
CIE-LCHlch(23.51, 72.77, 304.07°)
OKLaboklab(35.84% 0.0217 -0.1742)
OKLCHoklch(35.84% 0.176 277.1)
XYZxyz(7.1508, 3.9522, 28.8140)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2395 #8A9523
analogous
#235195 #2E2395 #672395
triadic
#2E2395 #952E23 #23952E
tetradic
#2E2395 #952351 #8A9523 #239567
square
#2E2395 #952351 #8A9523 #239567
split-complementary
#2E2395 #956723 #519523
monochromatic
#0F0C32 #1F1763 #2E2395 #3D2FC7 #665AD8

Accessibility & contrast

On white

11.73
#2E2395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E2395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2395
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2395#FFFFFF#000000##FFFFFF
##2E23951.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2395;
/* rgb */ color: rgb(46, 35, 149);
/* oklch */ color: oklch(35.8% 0.176 277.1);
Tailwind
colors: {
  custom: {
    50: '#7660b5',
    500: '#2e2395',
    950: '#000000',
  },
}
SCSS
$custom: #2e2395;
$custom-light: #7660b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2395",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 245.789,
    "s": 61.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35836,
    "c": 0.17552,
    "h": 277.1
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#2E2395
secondary
#B3BD57
accent
#E543D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2395

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

Preview Lab → · Contrast checker → · Palette generator →

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