#2E2170#2E2170

#2E2170 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.129 H 283.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2E2170
RGBrgb(46, 33, 112)
HSLhsl(250, 54%, 28%)
HSVhsv(250, 71%, 44%)
CMYKcmyk(58.9%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.38, 29.62, -43.72)
CIE-LCHlch(19.38, 52.81, 304.12°)
OKLaboklab(31.77% 0.0307 -0.1257)
OKLCHoklch(31.77% 0.129 283.7)
XYZxyz(4.5943, 2.8381, 15.6318)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2170 #637021
analogous
#213B70 #2E2170 #552170
triadic
#2E2170 #702E21 #21702E
tetradic
#2E2170 #70213B #637021 #217055
square
#2E2170 #70213B #637021 #217055
split-complementary
#2E2170 #705521 #3B7021
monochromatic
#0A0718 #1B1341 #2E2170 #412F9F #5944C8

Accessibility & contrast

On white

13.40
#2E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2170
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2170#FFFFFF#000000##FFFFFF
##2E21701.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#0D3545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e2170;
/* rgb */ color: rgb(46, 33, 112);
/* oklch */ color: oklch(31.8% 0.129 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f5d9a',
    500: '#2e2170',
    950: '#000000',
  },
}
SCSS
$custom: #2e2170;
$custom-light: #6f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2170",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 249.873,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31772,
    "c": 0.12943,
    "h": 283.7
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#2E2170
secondary
#95A449
accent
#DE4AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2170

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

Preview Lab → · Contrast checker → · Palette generator →

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