#2E2178#2E2178

#2E2178 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.140 H 282.1°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2E2178
RGBrgb(46, 33, 120)
HSLhsl(249, 57%, 30%)
HSVhsv(249, 73%, 47%)
CMYKcmyk(61.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.14, 32.31, -47.62)
CIE-LCHlch(20.14, 57.55, 304.16°)
OKLaboklab(32.55% 0.0294 -0.1372)
OKLCHoklch(32.55% 0.14 282.1)
XYZxyz(5.0597, 3.0243, 18.0828)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2178 #6B7821
analogous
#213F78 #2E2178 #5A2178
triadic
#2E2178 #782E21 #21782E
tetradic
#2E2178 #78213F #6B7821 #21785A
square
#2E2178 #78213F #6B7821 #21785A
split-complementary
#2E2178 #785A21 #3F7821
monochromatic
#090718 #1C1448 #2E2178 #402EA8 #5B47CC

Accessibility & contrast

On white

13.08
#2E2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2178
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2178#FFFFFF#000000##FFFFFF
##2E21781.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e2178;
/* rgb */ color: rgb(46, 33, 120);
/* oklch */ color: oklch(32.5% 0.140 282.1);
Tailwind
colors: {
  custom: {
    50: '#705ea0',
    500: '#2e2178',
    950: '#000000',
  },
}
SCSS
$custom: #2e2178;
$custom-light: #705ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2178",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 248.966,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32549,
    "c": 0.14029,
    "h": 282.1
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#2E2178
secondary
#9DAB4A
accent
#E048C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E2178

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

Preview Lab → · Contrast checker → · Palette generator →

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