#2E2F97#2E2F97

#2E2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.165 H 274.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2E2F97
RGBrgb(46, 47, 151)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 70%, 59%)
CMYKcmyk(69.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.30, 34.29, -56.93)
CIE-LCHlch(26.30, 66.46, 301.07°)
OKLaboklab(37.89% 0.0136 -0.1644)
OKLCHoklch(37.89% 0.165 274.7)
XYZxyz(7.7273, 4.8475, 29.8006)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F97 #97962E
analogous
#2E6397 #2E2F97 #612E97
triadic
#2E2F97 #972E2F #2F972E
tetradic
#2E2F97 #972E63 #97962E #2E9761
square
#2E2F97 #972E63 #97962E #2E9761
split-complementary
#2E2F97 #97612E #63972E
monochromatic
#111239 #202068 #2E2F97 #3E3FC4 #6D6ED2

Accessibility & contrast

On white

10.66
#2E2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2E2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F97
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F97#FFFFFF#000000##FFFFFF
##2E2F971.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2f97;
/* rgb */ color: rgb(46, 47, 151);
/* oklch */ color: oklch(37.9% 0.165 274.7);
Tailwind
colors: {
  custom: {
    50: '#7668b7',
    500: '#2e2f97',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f97;
$custom-light: #7668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f97",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 239.429,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37886,
    "c": 0.16499,
    "h": 274.7
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#2E2F97
secondary
#BAB967
accent
#DB4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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