#2E3795#2E3795

#2E3795 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.152 H 272.9°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2E3795
RGBrgb(46, 55, 149)
HSLhsl(235, 53%, 38%)
HSVhsv(235, 69%, 58%)
CMYKcmyk(69.1%, 63.1%, 0%, 41.6%)
CIE-LABlab(28.07, 28.41, -52.80)
CIE-LCHlch(28.07, 59.96, 298.28°)
OKLaboklab(39.12% 0.0077 -0.1523)
OKLCHoklch(39.12% 0.153 272.9)
XYZxyz(7.9159, 5.4824, 29.0690)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3795 #958C2E
analogous
#2E6A95 #2E3795 #582E95
triadic
#2E3795 #952E37 #37952E
tetradic
#2E3795 #952E6A #958C2E #2E9558
square
#2E3795 #952E6A #958C2E #2E9558
split-complementary
#2E3795 #95582E #6A952E
monochromatic
#111437 #202666 #2E3795 #3D49C3 #6C75D2

Accessibility & contrast

On white

10.02
#2E3795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2E3795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3795
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3795#FFFFFF#000000##FFFFFF
##2E37951.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e3795;
/* rgb */ color: rgb(46, 55, 149);
/* oklch */ color: oklch(39.1% 0.152 272.9);
Tailwind
colors: {
  custom: {
    50: '#746eb5',
    500: '#2e3795',
    950: '#000000',
  },
}
SCSS
$custom: #2e3795;
$custom-light: #746eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3795",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 234.757,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39124,
    "c": 0.1525,
    "h": 272.9
  },
  "luminance": 0.05483
}

Semantic roles & 50–950 ramp

primary
#2E3795
secondary
#B9B166
accent
#D04CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3795

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

Preview Lab → · Contrast checker → · Palette generator →

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