#2E3198#2E3198

#2E3198 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.164 H 274.2°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2E3198
RGBrgb(46, 49, 152)
HSLhsl(238, 54%, 39%)
HSVhsv(238, 70%, 60%)
CMYKcmyk(69.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.86, 33.38, -56.62)
CIE-LCHlch(26.86, 65.73, 300.52°)
OKLaboklab(38.32% 0.0121 -0.1635)
OKLCHoklch(38.32% 0.164 274.2)
XYZxyz(7.8906, 5.0437, 30.2574)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3198 #98952E
analogous
#2E6698 #2E3198 #602E98
triadic
#2E3198 #982E31 #31982E
tetradic
#2E3198 #982E66 #98952E #2E9860
square
#2E3198 #982E66 #98952E #2E9860
split-complementary
#2E3198 #98602E #66982E
monochromatic
#12133A #202269 #2E3198 #3E42C5 #6D70D3

Accessibility & contrast

On white

10.45
#2E3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2E3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3198
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3198#FFFFFF#000000##FFFFFF
##2E31981.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e3198;
/* rgb */ color: rgb(46, 49, 152);
/* oklch */ color: oklch(38.3% 0.164 274.2);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2e3198',
    950: '#000000',
  },
}
SCSS
$custom: #2e3198;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3198",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 238.302,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38323,
    "c": 0.16397,
    "h": 274.2
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#2E3198
secondary
#BAB868
accent
#D94BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E3198

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

Preview Lab → · Contrast checker → · Palette generator →

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