#2E3798#2E3798

#2E3798 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.157 H 272.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2E3798
RGBrgb(46, 55, 152)
HSLhsl(235, 54%, 39%)
HSVhsv(235, 70%, 60%)
CMYKcmyk(69.7%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.33, 29.50, -54.22)
CIE-LCHlch(28.33, 61.72, 298.55°)
OKLaboklab(39.39% 0.0076 -0.1564)
OKLCHoklch(39.39% 0.157 272.8)
XYZxyz(8.1585, 5.5794, 30.3467)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3798 #988F2E
analogous
#2E6C98 #2E3798 #5A2E98
triadic
#2E3798 #982E37 #37982E
tetradic
#2E3798 #982E6C #988F2E #2E985A
square
#2E3798 #982E6C #988F2E #2E985A
split-complementary
#2E3798 #985A2E #6C982E
monochromatic
#12153A #202669 #2E3798 #3E4AC5 #6D76D3

Accessibility & contrast

On white

9.92
#2E3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3798
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3798#FFFFFF#000000##FFFFFF
##2E37981.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e3798;
/* rgb */ color: rgb(46, 55, 152);
/* oklch */ color: oklch(39.4% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#756eb7',
    500: '#2e3798',
    950: '#000000',
  },
}
SCSS
$custom: #2e3798;
$custom-light: #756eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3798",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 234.906,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39394,
    "c": 0.15663,
    "h": 272.8
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#2E3798
secondary
#BAB368
accent
#D14BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3798

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

Preview Lab → · Contrast checker → · Palette generator →

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