#2E2278#2E2278

#2E2278 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.139 H 281.8°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2E2278
RGBrgb(46, 34, 120)
HSLhsl(248, 56%, 30%)
HSVhsv(248, 72%, 47%)
CMYKcmyk(61.7%, 71.7%, 0%, 52.9%)
CIE-LABlab(20.36, 31.70, -47.26)
CIE-LCHlch(20.36, 56.90, 303.85°)
OKLaboklab(32.71% 0.0285 -0.1361)
OKLCHoklch(32.71% 0.139 281.8)
XYZxyz(5.0878, 3.0806, 18.0922)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2278 #6C7822
analogous
#224178 #2E2278 #592278
triadic
#2E2278 #782E22 #22782E
tetradic
#2E2278 #782241 #6C7822 #227859
square
#2E2278 #782241 #6C7822 #227859
split-complementary
#2E2278 #785922 #417822
monochromatic
#090719 #1C1448 #2E2278 #4030A8 #5B49CB

Accessibility & contrast

On white

12.99
#2E2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2278
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2278#FFFFFF#000000##FFFFFF
##2E22781.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2278;
/* rgb */ color: rgb(46, 34, 120);
/* oklch */ color: oklch(32.7% 0.139 281.8);
Tailwind
colors: {
  custom: {
    50: '#705ea0',
    500: '#2e2278',
    950: '#000000',
  },
}
SCSS
$custom: #2e2278;
$custom-light: #705ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2278",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 248.372,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32709,
    "c": 0.13906,
    "h": 281.8
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#2E2278
secondary
#9EAB4B
accent
#DF49CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E2278

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

Preview Lab → · Contrast checker → · Palette generator →

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