#2E2FA1#2E2FA1

#2E2FA1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.178 H 274.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2E2FA1
RGBrgb(46, 47, 161)
HSLhsl(239, 56%, 41%)
HSVhsv(239, 71%, 63%)
CMYKcmyk(71.4%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.26, 37.78, -61.45)
CIE-LCHlch(27.26, 72.13, 301.59°)
OKLaboklab(38.87% 0.0123 -0.1776)
OKLCHoklch(38.87% 0.178 274)
XYZxyz(8.5741, 5.1863, 34.2605)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2FA1 #A1A02E
analogous
#2E68A1 #2E2FA1 #662EA1
triadic
#2E2FA1 #A12E2F #2FA12E
tetradic
#2E2FA1 #A12E68 #A1A02E #2EA166
square
#2E2FA1 #A12E68 #A1A02E #2EA166
split-complementary
#2E2FA1 #A1662E #68A12E
monochromatic
#131342 #202171 #2E2FA1 #4344C9 #7373D7

Accessibility & contrast

On white

10.31
#2E2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2E2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2FA1
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2FA1#FFFFFF#000000##FFFFFF
##2E2FA11.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e2fa1;
/* rgb */ color: rgb(46, 47, 161);
/* oklch */ color: oklch(38.9% 0.178 274.0);
Tailwind
colors: {
  custom: {
    50: '#7868be',
    500: '#2e2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2e2fa1;
$custom-light: #7868be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2fa1",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 239.478,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.17807,
    "h": 274
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#2E2FA1
secondary
#BEBE6C
accent
#DE49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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