#2E2298#2E2298

#2E2298 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.180 H 276.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2E2298
RGBrgb(46, 34, 152)
HSLhsl(246, 63%, 36%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(69.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.64, 42.29, -61.91)
CIE-LCHlch(23.64, 74.97, 304.33°)
OKLaboklab(36.02% 0.0216 -0.1789)
OKLCHoklch(36.02% 0.18 276.9)
XYZxyz(7.3644, 3.9912, 30.0820)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2298 #8C9822
analogous
#225198 #2E2298 #692298
triadic
#2E2298 #982E22 #22982E
tetradic
#2E2298 #982251 #8C9822 #229869
square
#2E2298 #982251 #8C9822 #229869
split-complementary
#2E2298 #986922 #519822
monochromatic
#100C34 #1F1766 #2E2298 #3D2DCA #675ADA

Accessibility & contrast

On white

11.68
#2E2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2298
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2298#FFFFFF#000000##FFFFFF
##2E22981.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2298;
/* rgb */ color: rgb(46, 34, 152);
/* oklch */ color: oklch(36.0% 0.180 276.9);
Tailwind
colors: {
  custom: {
    50: '#7760b8',
    500: '#2e2298',
    950: '#000000',
  },
}
SCSS
$custom: #2e2298;
$custom-light: #7760b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2298",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 246.102,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36024,
    "c": 0.18022,
    "h": 276.9
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#2E2298
secondary
#B4BE57
accent
#E641D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2298

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

Preview Lab → · Contrast checker → · Palette generator →

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