#2E2198#2E2198

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

Color values

HEX#2E2198
RGBrgb(46, 33, 152)
HSLhsl(247, 64%, 36%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.7%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.45, 42.82, -62.22)
CIE-LCHlch(23.45, 75.53, 304.54°)
OKLaboklab(35.89% 0.0221 -0.1798)
OKLCHoklch(35.89% 0.181 277)
XYZxyz(7.3362, 3.9349, 30.0726)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2198 #8B9821
analogous
#215098 #2E2198 #6A2198
triadic
#2E2198 #982E21 #21982E
tetradic
#2E2198 #982150 #8B9821 #21986A
square
#2E2198 #982150 #8B9821 #21986A
split-complementary
#2E2198 #986A21 #509821
monochromatic
#100B33 #1F1666 #2E2198 #3D2CCA #6759DB

Accessibility & contrast

On white

11.75
#2E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2198
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2198#FFFFFF#000000##FFFFFF
##2E21981.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2198;
/* rgb */ color: rgb(46, 33, 152);
/* oklch */ color: oklch(35.9% 0.181 277.0);
Tailwind
colors: {
  custom: {
    50: '#775fb8',
    500: '#2e2198',
    950: '#000000',
  },
}
SCSS
$custom: #2e2198;
$custom-light: #775fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2198",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 246.555,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35892,
    "c": 0.18116,
    "h": 277
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#2E2198
secondary
#B3BF56
accent
#E740D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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