#2E3E98#2E3E98

#2E3E98 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.148 H 270.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2E3E98
RGBrgb(46, 62, 152)
HSLhsl(231, 54%, 39%)
HSVhsv(231, 70%, 60%)
CMYKcmyk(69.7%, 59.2%, 0%, 40.4%)
CIE-LABlab(30.14, 24.85, -51.26)
CIE-LCHlch(30.14, 56.97, 295.87°)
OKLaboklab(40.74% 0.0019 -0.1477)
OKLCHoklch(40.74% 0.148 270.7)
XYZxyz(8.5149, 6.2923, 30.4655)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3E98 #98882E
analogous
#2E7398 #2E3E98 #532E98
triadic
#2E3E98 #982E3E #3E982E
tetradic
#2E3E98 #982E73 #98882E #2E9853
square
#2E3E98 #982E73 #98882E #2E9853
split-complementary
#2E3E98 #98532E #73982E
monochromatic
#12183A #202B69 #2E3E98 #3E53C5 #6D7DD3

Accessibility & contrast

On white

9.30
#2E3E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2E3E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3E98
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3E98#FFFFFF#000000##FFFFFF
##2E3E981.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e3e98;
/* rgb */ color: rgb(46, 62, 152);
/* oklch */ color: oklch(40.7% 0.148 270.7);
Tailwind
colors: {
  custom: {
    50: '#7573b7',
    500: '#2e3e98',
    950: '#000000',
  },
}
SCSS
$custom: #2e3e98;
$custom-light: #7573b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3e98",
  "rgb": {
    "r": 46,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 230.943,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.14771,
    "h": 270.7
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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