#2E2287#2E2287

#2E2287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.159 H 279.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2E2287
RGBrgb(46, 34, 135)
HSLhsl(247, 60%, 33%)
HSVhsv(247, 75%, 53%)
CMYKcmyk(65.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.85, 36.72, -54.31)
CIE-LCHlch(21.85, 65.56, 304.06°)
OKLaboklab(34.22% 0.0255 -0.1568)
OKLCHoklch(34.22% 0.159 279.2)
XYZxyz(6.0705, 3.4737, 23.2676)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2287 #7B8722
analogous
#224887 #2E2287 #602287
triadic
#2E2287 #872E22 #22872E
tetradic
#2E2287 #872248 #7B8722 #228760
square
#2E2287 #872248 #7B8722 #228760
split-complementary
#2E2287 #876022 #488722
monochromatic
#0D0925 #1D1656 #2E2287 #3F2EB8 #6050D3

Accessibility & contrast

On white

12.39
#2E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2287
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2287#FFFFFF#000000##FFFFFF
##2E22871.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2287;
/* rgb */ color: rgb(46, 34, 135);
/* oklch */ color: oklch(34.2% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#735fab',
    500: '#2e2287',
    950: '#000000',
  },
}
SCSS
$custom: #2e2287;
$custom-light: #735fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2287",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 247.129,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3422,
    "c": 0.15882,
    "h": 279.2
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#2E2287
secondary
#AAB74E
accent
#E345D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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