#2E2895#2E2895

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

Color values

HEX#2E2895
RGBrgb(46, 40, 149)
HSLhsl(243, 58%, 37%)
HSVhsv(243, 73%, 58%)
CMYKcmyk(69.1%, 73.2%, 0%, 41.6%)
CIE-LABlab(24.54, 37.89, -58.59)
CIE-LCHlch(24.54, 69.77, 302.89°)
OKLaboklab(36.56% 0.0187 -0.1693)
OKLCHoklch(36.56% 0.17 276.3)
XYZxyz(7.3085, 4.2677, 28.8665)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2895 #8F9528
analogous
#285895 #2E2895 #652895
triadic
#2E2895 #952E28 #28952E
tetradic
#2E2895 #952858 #8F9528 #289565
square
#2E2895 #952858 #8F9528 #289565
split-complementary
#2E2895 #956528 #589528
monochromatic
#100E35 #1F1B65 #2E2895 #3D35C5 #6962D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E2895#FFFFFF#000000##FFFFFF
##2E28951.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)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2895;
/* rgb */ color: rgb(46, 40, 149);
/* oklch */ color: oklch(36.6% 0.170 276.3);
Tailwind
colors: {
  custom: {
    50: '#7663b5',
    500: '#2e2895',
    950: '#000000',
  },
}
SCSS
$custom: #2e2895;
$custom-light: #7663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2895",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 243.303,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36563,
    "c": 0.17031,
    "h": 276.3
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#2E2895
secondary
#B6BB5E
accent
#E147D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2895

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

Preview Lab → · Contrast checker → · Palette generator →

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