#2E2871#2E2871

#2E2871 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.121 H 281.2°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2E2871
RGBrgb(46, 40, 113)
HSLhsl(245, 48%, 30%)
HSVhsv(245, 65%, 44%)
CMYKcmyk(59.3%, 64.6%, 0%, 55.7%)
CIE-LABlab(21.17, 25.43, -41.45)
CIE-LCHlch(21.17, 48.63, 301.53°)
OKLaboklab(33.1% 0.0235 -0.119)
OKLCHoklch(33.1% 0.121 281.2)
XYZxyz(4.8652, 3.2904, 15.9983)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2871 #6B7128
analogous
#284671 #2E2871 #532871
triadic
#2E2871 #712E28 #28712E
tetradic
#2E2871 #712846 #6B7128 #287153
square
#2E2871 #712846 #6B7128 #287153
split-complementary
#2E2871 #715328 #467128
monochromatic
#090817 #1C1844 #2E2871 #40389E #5B52C2

Accessibility & contrast

On white

12.66
#2E2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2871
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2871#FFFFFF#000000##FFFFFF
##2E28711.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2871;
/* rgb */ color: rgb(46, 40, 113);
/* oklch */ color: oklch(33.1% 0.121 281.2);
Tailwind
colors: {
  custom: {
    50: '#6e629a',
    500: '#2e2871',
    950: '#000000',
  },
}
SCSS
$custom: #2e2871;
$custom-light: #6e629a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2871",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 244.932,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.12135,
    "h": 281.2
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#2E2871
secondary
#9DA352
accent
#D750CC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2871

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

Preview Lab → · Contrast checker → · Palette generator →

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