#2E1F94#2E1F94

#2E1F94 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.178 H 277.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2E1F94
RGBrgb(46, 31, 148)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(68.9%, 79.1%, 0%, 42%)
CIE-LABlab(22.65, 42.60, -61.09)
CIE-LCHlch(22.65, 74.48, 304.89°)
OKLaboklab(35.2% 0.0242 -0.1765)
OKLCHoklch(35.2% 0.178 277.8)
XYZxyz(6.9603, 3.6983, 28.3583)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F94 #85941F
analogous
#1F4B94 #2E1F94 #681F94
triadic
#2E1F94 #942E1F #1F942E
tetradic
#2E1F94 #941F4B #85941F #1F9468
square
#2E1F94 #941F4B #85941F #1F9468
split-complementary
#2E1F94 #94681F #4B941F
monochromatic
#0F0A2F #1E1461 #2E1F94 #3E2AC7 #6453DB

Accessibility & contrast

On white

12.07
#2E1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F94
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F94#FFFFFF#000000##FFFFFF
##2E1F941.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1f94;
/* rgb */ color: rgb(46, 31, 148);
/* oklch */ color: oklch(35.2% 0.178 277.8);
Tailwind
colors: {
  custom: {
    50: '#765eb5',
    500: '#2e1f94',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f94;
$custom-light: #765eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f94",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 247.692,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35197,
    "c": 0.17814,
    "h": 277.8
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#2E1F94
secondary
#B0BE51
accent
#E83FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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