#2E2897#2E2897

#2E2897 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.173 H 276.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2E2897
RGBrgb(46, 40, 151)
HSLhsl(243, 58%, 37%)
HSVhsv(243, 74%, 59%)
CMYKcmyk(69.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.74, 38.56, -59.49)
CIE-LCHlch(24.74, 70.89, 302.95°)
OKLaboklab(36.77% 0.0183 -0.1719)
OKLCHoklch(36.77% 0.173 276.1)
XYZxyz(7.4696, 4.3321, 29.7147)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2897 #919728
analogous
#285A97 #2E2897 #652897
triadic
#2E2897 #972E28 #28972E
tetradic
#2E2897 #97285A #919728 #289765
square
#2E2897 #97285A #919728 #289765
split-complementary
#2E2897 #976528 #5A9728
monochromatic
#110E36 #1F1B67 #2E2897 #3D35C7 #6A64D6

Accessibility & contrast

On white

11.25
#2E2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2897
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2897#FFFFFF#000000##FFFFFF
##2E28971.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e2897;
/* rgb */ color: rgb(46, 40, 151);
/* oklch */ color: oklch(36.8% 0.173 276.1);
Tailwind
colors: {
  custom: {
    50: '#7663b7',
    500: '#2e2897',
    950: '#000000',
  },
}
SCSS
$custom: #2e2897;
$custom-light: #7663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2897",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 243.243,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36769,
    "c": 0.17286,
    "h": 276.1
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#2E2897
secondary
#B7BC5F
accent
#E146D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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