#2E2FA0#2E2FA0

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

Color values

HEX#2E2FA0
RGBrgb(46, 47, 160)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 63%)
CMYKcmyk(71.2%, 70.6%, 0%, 37.3%)
CIE-LABlab(27.16, 37.44, -61.00)
CIE-LCHlch(27.16, 71.57, 301.54°)
OKLaboklab(38.77% 0.0124 -0.1763)
OKLCHoklch(38.77% 0.177 274)
XYZxyz(8.4863, 5.1511, 33.7979)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2FA0 #A09F2E
analogous
#2E68A0 #2E2FA0 #662EA0
triadic
#2E2FA0 #A02E2F #2FA02E
tetradic
#2E2FA0 #A02E68 #A09F2E #2EA066
square
#2E2FA0 #A02E68 #A09F2E #2EA066
split-complementary
#2E2FA0 #A0662E #68A02E
monochromatic
#131341 #202170 #2E2FA0 #4244C9 #7273D6

Accessibility & contrast

On white

10.34
#2E2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2E2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2FA0
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2FA0#FFFFFF#000000##FFFFFF
##2E2FA01.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e2fa0;
/* rgb */ color: rgb(46, 47, 160);
/* oklch */ color: oklch(38.8% 0.177 274.0);
Tailwind
colors: {
  custom: {
    50: '#7868bd',
    500: '#2e2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2e2fa0;
$custom-light: #7868bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2fa0",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 239.474,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.17678,
    "h": 274
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#2E2FA0
secondary
#BEBD6C
accent
#DD49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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