#2E2775#2E2775

#2E2775 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.128 H 280.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2E2775
RGBrgb(46, 39, 117)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 67%, 46%)
CMYKcmyk(60.7%, 66.7%, 0%, 54.1%)
CIE-LABlab(21.27, 27.49, -43.86)
CIE-LCHlch(21.27, 51.76, 302.07°)
OKLaboklab(33.28% 0.0242 -0.1261)
OKLCHoklch(33.28% 0.128 280.9)
XYZxyz(5.0621, 3.3159, 17.1995)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2775 #6E7527
analogous
#274775 #2E2775 #552775
triadic
#2E2775 #752E27 #27752E
tetradic
#2E2775 #752747 #6E7527 #277555
square
#2E2775 #752747 #6E7527 #277555
split-complementary
#2E2775 #755527 #477527
monochromatic
#0A0819 #1C1847 #2E2775 #4036A3 #5C51C5

Accessibility & contrast

On white

12.63
#2E2775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E2775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2775
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2775#FFFFFF#000000##FFFFFF
##2E27751.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#033A4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2775;
/* rgb */ color: rgb(46, 39, 117);
/* oklch */ color: oklch(33.3% 0.128 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f619d',
    500: '#2e2775',
    950: '#000000',
  },
}
SCSS
$custom: #2e2775;
$custom-light: #6f619d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2775",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 117
  },
  "hsl": {
    "h": 245.385,
    "s": 50,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33276,
    "c": 0.12844,
    "h": 280.9
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#2E2775
secondary
#9FA751
accent
#DA4ECD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2775

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

Preview Lab → · Contrast checker → · Palette generator →

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