#2E2291#2E2291

#2E2291 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.172 H 277.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2E2291
RGBrgb(46, 34, 145)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 77%, 57%)
CMYKcmyk(68.3%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.89, 40.01, -58.83)
CIE-LCHlch(22.89, 71.15, 304.22°)
OKLaboklab(35.27% 0.0233 -0.1699)
OKLCHoklch(35.27% 0.172 277.8)
XYZxyz(6.8079, 3.7686, 27.1512)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2291 #859122
analogous
#224E91 #2E2291 #652291
triadic
#2E2291 #912E22 #22912E
tetradic
#2E2291 #91224E #859122 #229165
square
#2E2291 #91224E #859122 #229165
split-complementary
#2E2291 #916522 #4E9122
monochromatic
#0F0B2E #1E165F #2E2291 #3E2EC3 #6456D7

Accessibility & contrast

On white

11.97
#2E2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2291
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2291#FFFFFF#000000##FFFFFF
##2E22911.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2291;
/* rgb */ color: rgb(46, 34, 145);
/* oklch */ color: oklch(35.3% 0.172 277.8);
Tailwind
colors: {
  custom: {
    50: '#755fb2',
    500: '#2e2291',
    950: '#000000',
  },
}
SCSS
$custom: #2e2291;
$custom-light: #755fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2291",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 246.486,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.17152,
    "h": 277.8
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#2E2291
secondary
#B0BB53
accent
#E543D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2291

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

Preview Lab → · Contrast checker → · Palette generator →

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