#2E2971#2E2971

#2E2971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.120 H 280.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2E2971
RGBrgb(46, 41, 113)
HSLhsl(244, 47%, 30%)
HSVhsv(244, 64%, 44%)
CMYKcmyk(59.3%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.43, 24.76, -41.03)
CIE-LCHlch(21.43, 47.92, 301.11°)
OKLaboklab(33.28% 0.0224 -0.1178)
OKLCHoklch(33.28% 0.12 280.8)
XYZxyz(4.8994, 3.3587, 16.0097)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2971 #6C7129
analogous
#294871 #2E2971 #522971
triadic
#2E2971 #712E29 #29712E
tetradic
#2E2971 #712948 #6C7129 #297152
square
#2E2971 #712948 #6C7129 #297152
split-complementary
#2E2971 #715229 #487129
monochromatic
#090817 #1C1944 #2E2971 #40399E #5B54C1

Accessibility & contrast

On white

12.56
#2E2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2971
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2971#FFFFFF#000000##FFFFFF
##2E29711.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2971;
/* rgb */ color: rgb(46, 41, 113);
/* oklch */ color: oklch(33.3% 0.120 280.8);
Tailwind
colors: {
  custom: {
    50: '#6e639a',
    500: '#2e2971',
    950: '#000000',
  },
}
SCSS
$custom: #2e2971;
$custom-light: #6e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2971",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 244.167,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33285,
    "c": 0.11994,
    "h": 280.8
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2E2971
secondary
#9EA353
accent
#D651CD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2971

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

Preview Lab → · Contrast checker → · Palette generator →

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