#2E2490#2E2490

#2E2490 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.168 H 277.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2E2490
RGBrgb(46, 36, 144)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 56%)
CMYKcmyk(68.1%, 75%, 0%, 43.5%)
CIE-LABlab(23.19, 38.55, -57.72)
CIE-LCHlch(23.19, 69.41, 303.74°)
OKLaboklab(35.45% 0.0222 -0.1667)
OKLCHoklch(35.45% 0.168 277.6)
XYZxyz(6.7900, 3.8556, 26.7665)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2490 #869024
analogous
#245090 #2E2490 #642490
triadic
#2E2490 #902E24 #24902E
tetradic
#2E2490 #902450 #869024 #249064
square
#2E2490 #902450 #869024 #249064
split-complementary
#2E2490 #906424 #509024
monochromatic
#0F0C2E #1E185F #2E2490 #3E30C1 #6459D5

Accessibility & contrast

On white

11.86
#2E2490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2490
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2490#FFFFFF#000000##FFFFFF
##2E24901.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2490;
/* rgb */ color: rgb(46, 36, 144);
/* oklch */ color: oklch(35.4% 0.168 277.6);
Tailwind
colors: {
  custom: {
    50: '#7560b2',
    500: '#2e2490',
    950: '#000000',
  },
}
SCSS
$custom: #2e2490;
$custom-light: #7560b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2490",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 245.556,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3545,
    "c": 0.1682,
    "h": 277.6
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#2E2490
secondary
#B1BA56
accent
#E345D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2490

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

Preview Lab → · Contrast checker → · Palette generator →

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