#2E2297#2E2297

#2E2297 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.179 H 277.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2E2297
RGBrgb(46, 34, 151)
HSLhsl(246, 63%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(69.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.53, 41.96, -61.48)
CIE-LCHlch(23.53, 74.43, 304.32°)
OKLaboklab(35.92% 0.0218 -0.1776)
OKLCHoklch(35.92% 0.179 277)
XYZxyz(7.2828, 3.9586, 29.6524)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2297 #8B9722
analogous
#225197 #2E2297 #692297
triadic
#2E2297 #972E22 #22972E
tetradic
#2E2297 #972251 #8B9722 #229769
square
#2E2297 #972251 #8B9722 #229769
split-complementary
#2E2297 #976922 #519722
monochromatic
#100C33 #1F1765 #2E2297 #3D2DC9 #675ADA

Accessibility & contrast

On white

11.72
#2E2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2297
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2297#FFFFFF#000000##FFFFFF
##2E22971.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2297;
/* rgb */ color: rgb(46, 34, 151);
/* oklch */ color: oklch(35.9% 0.179 277.0);
Tailwind
colors: {
  custom: {
    50: '#7760b7',
    500: '#2e2297',
    950: '#000000',
  },
}
SCSS
$custom: #2e2297;
$custom-light: #7760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2297",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 246.154,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35915,
    "c": 0.17899,
    "h": 277
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#2E2297
secondary
#B3BE57
accent
#E642D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2297

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

Preview Lab → · Contrast checker → · Palette generator →

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