#2E3D98#2E3D98

#2E3D98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.149 H 271.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2E3D98
RGBrgb(46, 61, 152)
HSLhsl(232, 54%, 39%)
HSVhsv(232, 70%, 60%)
CMYKcmyk(69.7%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.87, 25.52, -51.69)
CIE-LCHlch(29.87, 57.65, 296.28°)
OKLaboklab(40.54% 0.0027 -0.149)
OKLCHoklch(40.54% 0.149 271)
XYZxyz(8.4610, 6.1845, 30.4475)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3D98 #98892E
analogous
#2E7298 #2E3D98 #542E98
triadic
#2E3D98 #982E3D #3D982E
tetradic
#2E3D98 #982E72 #98892E #2E9854
square
#2E3D98 #982E72 #98892E #2E9854
split-complementary
#2E3D98 #98542E #72982E
monochromatic
#12173A #202A69 #2E3D98 #3E51C5 #6D7CD3

Accessibility & contrast

On white

9.39
#2E3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E3D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3D98
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3D98#FFFFFF#000000##FFFFFF
##2E3D981.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3d98;
/* rgb */ color: rgb(46, 61, 152);
/* oklch */ color: oklch(40.5% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#7572b7',
    500: '#2e3d98',
    950: '#000000',
  },
}
SCSS
$custom: #2e3d98;
$custom-light: #7572b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3d98",
  "rgb": {
    "r": 46,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 231.509,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.149,
    "h": 271
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#2E3D98
secondary
#BAAE68
accent
#C84BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2E3D98

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

Preview Lab → · Contrast checker → · Palette generator →

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