#2E3C97#2E3C97

#2E3C97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.149 H 271.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2E3C97
RGBrgb(46, 60, 151)
HSLhsl(232, 53%, 39%)
HSVhsv(232, 70%, 59%)
CMYKcmyk(69.5%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.53, 25.82, -51.65)
CIE-LCHlch(29.53, 57.74, 296.56°)
OKLaboklab(40.26% 0.0035 -0.1488)
OKLCHoklch(40.26% 0.149 271.4)
XYZxyz(8.3266, 6.0461, 30.0004)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3C97 #97892E
analogous
#2E7097 #2E3C97 #542E97
triadic
#2E3C97 #972E3C #3C972E
tetradic
#2E3C97 #972E70 #97892E #2E9754
square
#2E3C97 #972E70 #97892E #2E9754
split-complementary
#2E3C97 #97542E #70972E
monochromatic
#111739 #202968 #2E3C97 #3E50C4 #6D7AD2

Accessibility & contrast

On white

9.50
#2E3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2E3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3C97
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3C97#FFFFFF#000000##FFFFFF
##2E3C971.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3c97;
/* rgb */ color: rgb(46, 60, 151);
/* oklch */ color: oklch(40.3% 0.149 271.4);
Tailwind
colors: {
  custom: {
    50: '#7471b6',
    500: '#2e3c97',
    950: '#000000',
  },
}
SCSS
$custom: #2e3c97;
$custom-light: #7471b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3c97",
  "rgb": {
    "r": 46,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 232,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.14889,
    "h": 271.4
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#2E3C97
secondary
#BAAF67
accent
#C94BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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