#2E2371#2E2371

#2E2371 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.128 H 282.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2E2371
RGBrgb(46, 35, 113)
HSLhsl(248, 53%, 29%)
HSVhsv(248, 69%, 44%)
CMYKcmyk(59.3%, 69%, 0%, 55.7%)
CIE-LABlab(19.94, 28.69, -43.45)
CIE-LCHlch(19.94, 52.07, 303.44°)
OKLaboklab(32.2% 0.0286 -0.1249)
OKLCHoklch(32.2% 0.128 282.9)
XYZxyz(4.7075, 2.9749, 15.9457)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2371 #667123
analogous
#233F71 #2E2371 #552371
triadic
#2E2371 #712E23 #23712E
tetradic
#2E2371 #71233F #667123 #237155
square
#2E2371 #71233F #667123 #237155
split-complementary
#2E2371 #715523 #3F7123
monochromatic
#0A0717 #1B1542 #2E2371 #4131A0 #5A48C6

Accessibility & contrast

On white

13.17
#2E2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2371
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2371#FFFFFF#000000##FFFFFF
##2E23711.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#0B3746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2371;
/* rgb */ color: rgb(46, 35, 113);
/* oklch */ color: oklch(32.2% 0.128 282.9);
Tailwind
colors: {
  custom: {
    50: '#6f5f9b',
    500: '#2e2371',
    950: '#000000',
  },
}
SCSS
$custom: #2e2371;
$custom-light: #6f5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2371",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 248.462,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32204,
    "c": 0.12819,
    "h": 282.9
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#2E2371
secondary
#98A44C
accent
#DC4CC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2371

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

Preview Lab → · Contrast checker → · Palette generator →

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