#2E3997#2E3997

#2E3997 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.153 H 272.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2E3997
RGBrgb(46, 57, 151)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 70%, 59%)
CMYKcmyk(69.5%, 62.3%, 0%, 40.8%)
CIE-LABlab(28.75, 27.82, -52.92)
CIE-LCHlch(28.75, 59.78, 297.73°)
OKLaboklab(39.68% 0.006 -0.1526)
OKLCHoklch(39.68% 0.153 272.3)
XYZxyz(8.1739, 5.7407, 29.9495)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3997 #978C2E
analogous
#2E6D97 #2E3997 #572E97
triadic
#2E3997 #972E39 #39972E
tetradic
#2E3997 #972E6D #978C2E #2E9757
square
#2E3997 #972E6D #978C2E #2E9757
split-complementary
#2E3997 #97572E #6D972E
monochromatic
#111639 #202768 #2E3997 #3E4CC4 #6D78D2

Accessibility & contrast

On white

9.78
#2E3997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E3997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3997
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3997#FFFFFF#000000##FFFFFF
##2E39971.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e3997;
/* rgb */ color: rgb(46, 57, 151);
/* oklch */ color: oklch(39.7% 0.153 272.3);
Tailwind
colors: {
  custom: {
    50: '#756fb6',
    500: '#2e3997',
    950: '#000000',
  },
}
SCSS
$custom: #2e3997;
$custom-light: #756fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3997",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 233.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.15273,
    "h": 272.3
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#2E3997
secondary
#BAB167
accent
#CD4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3997

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

Preview Lab → · Contrast checker → · Palette generator →

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