#2E2F96#2E2F96

#2E2F96 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.164 H 274.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2E2F96
RGBrgb(46, 47, 150)
HSLhsl(239, 53%, 38%)
HSVhsv(239, 69%, 59%)
CMYKcmyk(69.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.20, 33.94, -56.47)
CIE-LCHlch(26.20, 65.89, 301.01°)
OKLaboklab(37.79% 0.0138 -0.1631)
OKLCHoklch(37.79% 0.164 274.8)
XYZxyz(7.6464, 4.8152, 29.3747)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F96 #96952E
analogous
#2E6396 #2E2F96 #612E96
triadic
#2E2F96 #962E2F #2F962E
tetradic
#2E2F96 #962E63 #96952E #2E9661
square
#2E2F96 #962E63 #96952E #2E9661
split-complementary
#2E2F96 #96612E #63962E
monochromatic
#111238 #202067 #2E2F96 #3E3FC4 #6C6DD2

Accessibility & contrast

On white

10.70
#2E2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F96
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F96#FFFFFF#000000##FFFFFF
##2E2F961.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2f96;
/* rgb */ color: rgb(46, 47, 150);
/* oklch */ color: oklch(37.8% 0.164 274.8);
Tailwind
colors: {
  custom: {
    50: '#7568b6',
    500: '#2e2f96',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f96;
$custom-light: #7568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f96",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 239.423,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.16367,
    "h": 274.8
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#2E2F96
secondary
#B9B867
accent
#DB4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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