#2E2797#2E2797

#2E2797 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.174 H 276.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2E2797
RGBrgb(46, 39, 151)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 59%)
CMYKcmyk(69.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.53, 39.15, -59.83)
CIE-LCHlch(24.53, 71.50, 303.20°)
OKLaboklab(36.62% 0.0189 -0.1729)
OKLCHoklch(36.62% 0.174 276.2)
XYZxyz(7.4363, 4.2656, 29.7036)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2797 #909727
analogous
#275897 #2E2797 #662797
triadic
#2E2797 #972E27 #27972E
tetradic
#2E2797 #972758 #909727 #279766
square
#2E2797 #972758 #909727 #279766
split-complementary
#2E2797 #976627 #589727
monochromatic
#100E36 #1F1A66 #2E2797 #3D34C8 #6962D6

Accessibility & contrast

On white

11.33
#2E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2797
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2797#FFFFFF#000000##FFFFFF
##2E27971.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2797;
/* rgb */ color: rgb(46, 39, 151);
/* oklch */ color: oklch(36.6% 0.174 276.2);
Tailwind
colors: {
  custom: {
    50: '#7663b7',
    500: '#2e2797',
    950: '#000000',
  },
}
SCSS
$custom: #2e2797;
$custom-light: #7663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2797",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 243.75,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.17393,
    "h": 276.2
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#2E2797
secondary
#B6BC5E
accent
#E246D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2797

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

Preview Lab → · Contrast checker → · Palette generator →

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