#2E3897#2E3897

#2E3897 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.154 H 272.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2E3897
RGBrgb(46, 56, 151)
HSLhsl(234, 53%, 39%)
HSVhsv(234, 70%, 59%)
CMYKcmyk(69.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.49, 28.48, -53.33)
CIE-LCHlch(28.49, 60.46, 298.10°)
OKLaboklab(39.49% 0.0068 -0.1538)
OKLCHoklch(39.49% 0.154 272.5)
XYZxyz(8.1249, 5.6428, 29.9331)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3897 #978D2E
analogous
#2E6C97 #2E3897 #582E97
triadic
#2E3897 #972E38 #38972E
tetradic
#2E3897 #972E6C #978D2E #2E9758
square
#2E3897 #972E6C #978D2E #2E9758
split-complementary
#2E3897 #97582E #6C972E
monochromatic
#111539 #202768 #2E3897 #3E4BC4 #6D77D2

Accessibility & contrast

On white

9.86
#2E3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3897
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3897#FFFFFF#000000##FFFFFF
##2E38971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e3897;
/* rgb */ color: rgb(46, 56, 151);
/* oklch */ color: oklch(39.5% 0.154 272.5);
Tailwind
colors: {
  custom: {
    50: '#756eb6',
    500: '#2e3897',
    950: '#000000',
  },
}
SCSS
$custom: #2e3897;
$custom-light: #756eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3897",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 234.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39491,
    "c": 0.15399,
    "h": 272.5
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#2E3897
secondary
#BAB267
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3897

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

Preview Lab → · Contrast checker → · Palette generator →

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