#2E2497#2E2497

#2E2497 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.177 H 276.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2E2497
RGBrgb(46, 36, 151)
HSLhsl(245, 61%, 37%)
HSVhsv(245, 76%, 59%)
CMYKcmyk(69.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.92, 40.86, -60.83)
CIE-LCHlch(23.92, 73.28, 303.89°)
OKLaboklab(36.19% 0.0207 -0.1758)
OKLCHoklch(36.19% 0.177 276.7)
XYZxyz(7.3417, 4.0763, 29.6721)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2497 #8D9724
analogous
#245497 #2E2497 #682497
triadic
#2E2497 #972E24 #24972E
tetradic
#2E2497 #972454 #8D9724 #249768
square
#2E2497 #972454 #8D9724 #249768
split-complementary
#2E2497 #976824 #549724
monochromatic
#100C34 #1F1866 #2E2497 #3D30C8 #685DD8

Accessibility & contrast

On white

11.57
#2E2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2497
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2497#FFFFFF#000000##FFFFFF
##2E24971.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2497;
/* rgb */ color: rgb(46, 36, 151);
/* oklch */ color: oklch(36.2% 0.177 276.7);
Tailwind
colors: {
  custom: {
    50: '#7761b7',
    500: '#2e2497',
    950: '#000000',
  },
}
SCSS
$custom: #2e2497;
$custom-light: #7761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2497",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 245.217,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36189,
    "c": 0.17701,
    "h": 276.7
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#2E2497
secondary
#B5BD5A
accent
#E543D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2497

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

Preview Lab → · Contrast checker → · Palette generator →

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