#2E2771#2E2771

#2E2771 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.123 H 281.5°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2E2771
RGBrgb(46, 39, 113)
HSLhsl(246, 49%, 30%)
HSVhsv(246, 65%, 44%)
CMYKcmyk(59.3%, 65.5%, 0%, 55.7%)
CIE-LABlab(20.92, 26.09, -41.86)
CIE-LCHlch(20.92, 49.32, 301.94°)
OKLaboklab(32.91% 0.0246 -0.1203)
OKLCHoklch(32.91% 0.123 281.5)
XYZxyz(4.8319, 3.2238, 15.9872)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2771 #6A7127
analogous
#274571 #2E2771 #532771
triadic
#2E2771 #712E27 #27712E
tetradic
#2E2771 #712745 #6A7127 #277153
square
#2E2771 #712745 #6A7127 #277153
split-complementary
#2E2771 #715327 #457127
monochromatic
#090817 #1B1744 #2E2771 #41379E #5B50C3

Accessibility & contrast

On white

12.77
#2E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2771
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2771#FFFFFF#000000##FFFFFF
##2E27711.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#0B3948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2771;
/* rgb */ color: rgb(46, 39, 113);
/* oklch */ color: oklch(32.9% 0.123 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e619a',
    500: '#2e2771',
    950: '#000000',
  },
}
SCSS
$custom: #2e2771;
$custom-light: #6e619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2771",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 245.676,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32914,
    "c": 0.12274,
    "h": 281.5
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#2E2771
secondary
#9CA350
accent
#D850CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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