#2E2E97#2E2E97

#2E2E97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.166 H 275.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2E2E97
RGBrgb(46, 46, 151)
HSLhsl(240, 53%, 39%)
HSVhsv(240, 70%, 59%)
CMYKcmyk(69.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.06, 34.92, -57.31)
CIE-LCHlch(26.06, 67.11, 301.36°)
OKLaboklab(37.72% 0.0143 -0.1655)
OKLCHoklch(37.72% 0.166 275)
XYZxyz(7.6878, 4.7685, 29.7874)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E97 #97972E
analogous
#2E6297 #2E2E97 #622E97
triadic
#2E2E97 #972E2E #2E972E
tetradic
#2E2E97 #972E62 #97972E #2E9762
square
#2E2E97 #972E62 #97972E #2E9762
split-complementary
#2E2E97 #97622E #62972E
monochromatic
#111139 #202068 #2E2E97 #3E3EC4 #6D6DD2

Accessibility & contrast

On white

10.75
#2E2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2E2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2E97
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E97#FFFFFF#000000##FFFFFF
##2E2E971.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2e97;
/* rgb */ color: rgb(46, 46, 151);
/* oklch */ color: oklch(37.7% 0.166 275.0);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2e2e97',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e97;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e97",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37719,
    "c": 0.16616,
    "h": 275
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#2E2E97
secondary
#BABA67
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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