#2E2495#2E2495

#2E2495 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.175 H 277.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2E2495
RGBrgb(46, 36, 149)
HSLhsl(245, 61%, 36%)
HSVhsv(245, 76%, 58%)
CMYKcmyk(69.1%, 75.8%, 0%, 41.6%)
CIE-LABlab(23.71, 40.20, -59.95)
CIE-LCHlch(23.71, 72.18, 303.85°)
OKLaboklab(35.98% 0.0212 -0.1732)
OKLCHoklch(35.98% 0.175 277)
XYZxyz(7.1806, 4.0119, 28.8239)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2495 #8B9524
analogous
#245395 #2E2495 #672495
triadic
#2E2495 #952E24 #24952E
tetradic
#2E2495 #952453 #8B9524 #249567
square
#2E2495 #952453 #8B9524 #249567
split-complementary
#2E2495 #956724 #539524
monochromatic
#100C32 #1F1864 #2E2495 #3D30C6 #675CD8

Accessibility & contrast

On white

11.65
#2E2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2495
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2495#FFFFFF#000000##FFFFFF
##2E24951.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2495;
/* rgb */ color: rgb(46, 36, 149);
/* oklch */ color: oklch(36.0% 0.175 277.0);
Tailwind
colors: {
  custom: {
    50: '#7661b5',
    500: '#2e2495',
    950: '#000000',
  },
}
SCSS
$custom: #2e2495;
$custom-light: #7661b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2495",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 245.31,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35976,
    "c": 0.17452,
    "h": 277
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#2E2495
secondary
#B3BC59
accent
#E444D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2495

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

Preview Lab → · Contrast checker → · Palette generator →

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