#2E3395#2E3395

#2E3395 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.158 H 274.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2E3395
RGBrgb(46, 51, 149)
HSLhsl(237, 53%, 38%)
HSVhsv(237, 69%, 58%)
CMYKcmyk(69.1%, 65.8%, 0%, 41.6%)
CIE-LABlab(27.07, 31.03, -54.44)
CIE-LCHlch(27.07, 62.66, 299.68°)
OKLaboklab(38.39% 0.0109 -0.1571)
OKLCHoklch(38.39% 0.158 274)
XYZxyz(7.7336, 5.1177, 29.0082)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3395 #95902E
analogous
#2E6695 #2E3395 #5C2E95
triadic
#2E3395 #952E33 #33952E
tetradic
#2E3395 #952E66 #95902E #2E955C
square
#2E3395 #952E66 #95902E #2E955C
split-complementary
#2E3395 #955C2E #66952E
monochromatic
#111337 #202366 #2E3395 #3D44C3 #6C71D2

Accessibility & contrast

On white

10.38
#2E3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2E3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3395
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3395#FFFFFF#000000##FFFFFF
##2E33951.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e3395;
/* rgb */ color: rgb(46, 51, 149);
/* oklch */ color: oklch(38.4% 0.158 274.0);
Tailwind
colors: {
  custom: {
    50: '#756bb5',
    500: '#2e3395',
    950: '#000000',
  },
}
SCSS
$custom: #2e3395;
$custom-light: #756bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3395",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 237.087,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.1575,
    "h": 274
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#2E3395
secondary
#B9B566
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E3395

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

Preview Lab → · Contrast checker → · Palette generator →

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