#2E2A71#2E2A71

#2E2A71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.5% C 0.119 H 280.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2E2A71
RGBrgb(46, 42, 113)
HSLhsl(243, 46%, 30%)
HSVhsv(243, 63%, 44%)
CMYKcmyk(59.3%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.68, 24.09, -40.61)
CIE-LCHlch(21.68, 47.22, 300.67°)
OKLaboklab(33.48% 0.0214 -0.1166)
OKLCHoklch(33.48% 0.119 280.4)
XYZxyz(4.9344, 3.4287, 16.0214)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A71 #6D712A
analogous
#2A4971 #2E2A71 #512A71
triadic
#2E2A71 #712E2A #2A712E
tetradic
#2E2A71 #712A49 #6D712A #2A7151
square
#2E2A71 #712A49 #6D712A #2A7151
split-complementary
#2E2A71 #71512A #49712A
monochromatic
#0A0918 #1C1944 #2E2A71 #403B9E #5B55C0

Accessibility & contrast

On white

12.46
#2E2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A71
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A71#FFFFFF#000000##FFFFFF
##2E2A711.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#0A3B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2a71;
/* rgb */ color: rgb(46, 42, 113);
/* oklch */ color: oklch(33.5% 0.119 280.4);
Tailwind
colors: {
  custom: {
    50: '#6e639a',
    500: '#2e2a71',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a71;
$custom-light: #6e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a71",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 243.38,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.11852,
    "h": 280.4
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#2E2A71
secondary
#9FA354
accent
#D552CE
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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