#2E2E98#2E2E98

#2E2E98 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.167 H 274.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2E2E98
RGBrgb(46, 46, 152)
HSLhsl(240, 54%, 39%)
HSVhsv(240, 70%, 60%)
CMYKcmyk(69.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.16, 35.27, -57.76)
CIE-LCHlch(26.16, 67.68, 301.41°)
OKLaboklab(37.82% 0.0142 -0.1669)
OKLCHoklch(37.82% 0.167 274.9)
XYZxyz(7.7693, 4.8011, 30.2169)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E98 #98982E
analogous
#2E6398 #2E2E98 #632E98
triadic
#2E2E98 #982E2E #2E982E
tetradic
#2E2E98 #982E63 #98982E #2E9863
square
#2E2E98 #982E63 #98982E #2E9863
split-complementary
#2E2E98 #98632E #63982E
monochromatic
#12123A #202069 #2E2E98 #3E3EC5 #6D6DD3

Accessibility & contrast

On white

10.71
#2E2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2E98
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E98#FFFFFF#000000##FFFFFF
##2E2E981.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2e98;
/* rgb */ color: rgb(46, 46, 152);
/* oklch */ color: oklch(37.8% 0.167 274.9);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2e2e98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e98;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e98",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37817,
    "c": 0.16748,
    "h": 274.9
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#2E2E98
secondary
#BABA68
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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