#2E2498#2E2498

#2E2498 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.178 H 276.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2E2498
RGBrgb(46, 36, 152)
HSLhsl(245, 62%, 37%)
HSVhsv(245, 76%, 60%)
CMYKcmyk(69.7%, 76.3%, 0%, 40.4%)
CIE-LABlab(24.03, 41.19, -61.27)
CIE-LCHlch(24.03, 73.83, 303.91°)
OKLaboklab(36.3% 0.0205 -0.1771)
OKLCHoklch(36.3% 0.178 276.6)
XYZxyz(7.4232, 4.1089, 30.1016)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2498 #8E9824
analogous
#245498 #2E2498 #682498
triadic
#2E2498 #982E24 #24982E
tetradic
#2E2498 #982454 #8E9824 #249868
square
#2E2498 #982454 #8E9824 #249868
split-complementary
#2E2498 #986824 #549824
monochromatic
#100D35 #1F1867 #2E2498 #3D30C9 #685ED9

Accessibility & contrast

On white

11.53
#2E2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2498
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2498#FFFFFF#000000##FFFFFF
##2E24981.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2498;
/* rgb */ color: rgb(46, 36, 152);
/* oklch */ color: oklch(36.3% 0.178 276.6);
Tailwind
colors: {
  custom: {
    50: '#7761b7',
    500: '#2e2498',
    950: '#000000',
  },
}
SCSS
$custom: #2e2498;
$custom-light: #7761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2498",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 245.172,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36295,
    "c": 0.17826,
    "h": 276.6
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2498

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

Preview Lab → · Contrast checker → · Palette generator →

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