#2E2471#2E2471

#2E2471 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.127 H 282.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2E2471
RGBrgb(46, 36, 113)
HSLhsl(248, 52%, 29%)
HSVhsv(248, 68%, 44%)
CMYKcmyk(59.3%, 68.1%, 0%, 55.7%)
CIE-LABlab(20.18, 28.05, -43.06)
CIE-LCHlch(20.18, 51.39, 303.08°)
OKLaboklab(32.38% 0.0276 -0.1238)
OKLCHoklch(32.38% 0.127 282.6)
XYZxyz(4.7373, 3.0346, 15.9557)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2471 #677124
analogous
#244171 #2E2471 #552471
triadic
#2E2471 #712E24 #24712E
tetradic
#2E2471 #712441 #677124 #247155
square
#2E2471 #712441 #677124 #247155
split-complementary
#2E2471 #715524 #417124
monochromatic
#090717 #1B1543 #2E2471 #41339F #5A4AC5

Accessibility & contrast

On white

13.07
#2E2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2471
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2471#FFFFFF#000000##FFFFFF
##2E24711.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2471;
/* rgb */ color: rgb(46, 36, 113);
/* oklch */ color: oklch(32.4% 0.127 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e5f9b',
    500: '#2e2471',
    950: '#000000',
  },
}
SCSS
$custom: #2e2471;
$custom-light: #6e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2471",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 247.792,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32377,
    "c": 0.12685,
    "h": 282.6
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#2E2471
secondary
#99A44D
accent
#DB4DC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2471

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

Preview Lab → · Contrast checker → · Palette generator →

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