#2E2E71#2E2E71

#2E2E71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.3% C 0.113 H 278.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E2E71
RGBrgb(46, 46, 113)
HSLhsl(240, 42%, 31%)
HSVhsv(240, 59%, 44%)
CMYKcmyk(59.3%, 59.3%, 0%, 55.7%)
CIE-LABlab(22.75, 21.37, -38.89)
CIE-LCHlch(22.75, 44.38, 298.79°)
OKLaboklab(34.26% 0.0169 -0.1115)
OKLCHoklch(34.26% 0.113 278.6)
XYZxyz(5.0834, 3.7267, 16.0710)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E71 #71712E
analogous
#2E4F71 #2E2E71 #4F2E71
triadic
#2E2E71 #712E2E #2E712E
tetradic
#2E2E71 #712E4F #71712E #2E714F
square
#2E2E71 #712E4F #71712E #2E714F
split-complementary
#2E2E71 #714F2E #4F712E
monochromatic
#0B0B1A #1C1C46 #2E2E71 #40409C #5D5DBD

Accessibility & contrast

On white

12.03
#2E2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2E71
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E71#FFFFFF#000000##FFFFFF
##2E2E711.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#093E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2e71;
/* rgb */ color: rgb(46, 46, 113);
/* oklch */ color: oklch(34.3% 0.113 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e669a',
    500: '#2e2e71',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e71;
$custom-light: #6e669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e71",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.11277,
    "h": 278.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#2E2E71
secondary
#A2A258
accent
#D256D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2E2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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