#2E3898#2E3898

#2E3898 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.155 H 272.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2E3898
RGBrgb(46, 56, 152)
HSLhsl(234, 54%, 39%)
HSVhsv(234, 70%, 60%)
CMYKcmyk(69.7%, 63.2%, 0%, 40.4%)
CIE-LABlab(28.58, 28.84, -53.81)
CIE-LCHlch(28.58, 61.05, 298.20°)
OKLaboklab(39.58% 0.0068 -0.1552)
OKLCHoklch(39.58% 0.155 272.5)
XYZxyz(8.2065, 5.6754, 30.3627)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3898 #988E2E
analogous
#2E6D98 #2E3898 #592E98
triadic
#2E3898 #982E38 #38982E
tetradic
#2E3898 #982E6D #988E2E #2E9859
square
#2E3898 #982E6D #988E2E #2E9859
split-complementary
#2E3898 #98592E #6D982E
monochromatic
#12153A #202769 #2E3898 #3E4BC5 #6D77D3

Accessibility & contrast

On white

9.84
#2E3898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E3898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3898
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3898#FFFFFF#000000##FFFFFF
##2E38981.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e3898;
/* rgb */ color: rgb(46, 56, 152);
/* oklch */ color: oklch(39.6% 0.155 272.5);
Tailwind
colors: {
  custom: {
    50: '#756eb7',
    500: '#2e3898',
    950: '#000000',
  },
}
SCSS
$custom: #2e3898;
$custom-light: #756eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3898",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 234.34,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3958,
    "c": 0.15538,
    "h": 272.5
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#2E3898
secondary
#BAB268
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3898

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

Preview Lab → · Contrast checker → · Palette generator →

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