#2E2790#2E2790

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

Color values

HEX#2E2790
RGBrgb(46, 39, 144)
HSLhsl(244, 57%, 36%)
HSVhsv(244, 73%, 56%)
CMYKcmyk(68.1%, 72.9%, 0%, 43.5%)
CIE-LABlab(23.82, 36.79, -56.68)
CIE-LCHlch(23.82, 67.58, 302.99°)
OKLaboklab(35.9% 0.0203 -0.1637)
OKLCHoklch(35.9% 0.165 277.1)
XYZxyz(6.8846, 4.0449, 26.7981)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2790 #899027
analogous
#275490 #2E2790 #622790
triadic
#2E2790 #902E27 #27902E
tetradic
#2E2790 #902754 #899027 #279062
square
#2E2790 #902754 #899027 #279062
split-complementary
#2E2790 #906227 #549027
monochromatic
#0F0D30 #1F1A60 #2E2790 #3D34C0 #665ED3

Accessibility & contrast

On white

11.61
#2E2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2790
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2790#FFFFFF#000000##FFFFFF
##2E27901.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2790;
/* rgb */ color: rgb(46, 39, 144);
/* oklch */ color: oklch(35.9% 0.165 277.1);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2e2790',
    950: '#000000',
  },
}
SCSS
$custom: #2e2790;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2790",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 244,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.16495,
    "h": 277.1
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#2E2790
secondary
#B2B95A
accent
#E147D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E2790

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

Preview Lab → · Contrast checker → · Palette generator →

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