#2E2972#2E2972

#2E2972 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.121 H 280.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2E2972
RGBrgb(46, 41, 114)
HSLhsl(244, 47%, 30%)
HSVhsv(244, 64%, 45%)
CMYKcmyk(59.6%, 64%, 0%, 55.3%)
CIE-LABlab(21.51, 25.11, -41.54)
CIE-LCHlch(21.51, 48.54, 301.16°)
OKLaboklab(33.37% 0.0224 -0.1193)
OKLCHoklch(33.37% 0.121 280.6)
XYZxyz(4.9560, 3.3813, 16.3078)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2972 #6D7229
analogous
#294872 #2E2972 #532972
triadic
#2E2972 #722E29 #29722E
tetradic
#2E2972 #722948 #6D7229 #297253
square
#2E2972 #722948 #6D7229 #297253
split-complementary
#2E2972 #725329 #487229
monochromatic
#0A0918 #1C1945 #2E2972 #40399F #5B54C1

Accessibility & contrast

On white

12.53
#2E2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2972
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2972#FFFFFF#000000##FFFFFF
##2E29721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#083B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2972;
/* rgb */ color: rgb(46, 41, 114);
/* oklch */ color: oklch(33.4% 0.121 280.6);
Tailwind
colors: {
  custom: {
    50: '#6e639b',
    500: '#2e2972',
    950: '#000000',
  },
}
SCSS
$custom: #2e2972;
$custom-light: #6e639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2972",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 244.11,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.12139,
    "h": 280.6
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#2E2972
secondary
#9FA453
accent
#D751CE
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2972

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

Preview Lab → · Contrast checker → · Palette generator →

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