#2E2FA6#2E2FA6

#2E2FA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.184 H 273.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2E2FA6
RGBrgb(46, 47, 166)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(72.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.75, 39.51, -63.66)
CIE-LCHlch(27.75, 74.92, 301.82°)
OKLaboklab(39.38% 0.0116 -0.1841)
OKLCHoklch(39.38% 0.184 273.6)
XYZxyz(9.0239, 5.3662, 36.6292)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2FA6 #A6A52E
analogous
#2E6BA6 #2E2FA6 #692EA6
triadic
#2E2FA6 #A62E2F #2FA62E
tetradic
#2E2FA6 #A62E6B #A6A52E #2EA669
square
#2E2FA6 #A62E6B #A6A52E #2EA669
split-complementary
#2E2FA6 #A6692E #6BA62E
monochromatic
#131446 #212176 #2E2FA6 #4647CC #7676D9

Accessibility & contrast

On white

10.13
#2E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2FA6
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2FA6#FFFFFF#000000##FFFFFF
##2E2FA61.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e2fa6;
/* rgb */ color: rgb(46, 47, 166);
/* oklch */ color: oklch(39.4% 0.184 273.6);
Tailwind
colors: {
  custom: {
    50: '#7968c2',
    500: '#2e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2e2fa6;
$custom-light: #7968c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2fa6",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 239.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39378,
    "c": 0.18446,
    "h": 273.6
  },
  "luminance": 0.05367
}

Semantic roles & 50–950 ramp

primary
#2E2FA6
secondary
#C1C06F
accent
#DF48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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