#2E2D98#2E2D98

#2E2D98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.169 H 275.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2D98
RGBrgb(46, 45, 152)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 60%)
CMYKcmyk(69.7%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.93, 35.89, -58.14)
CIE-LCHlch(25.93, 68.32, 301.69°)
OKLaboklab(37.65% 0.0149 -0.168)
OKLCHoklch(37.65% 0.169 275.1)
XYZxyz(7.7307, 4.7239, 30.2041)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2D98 #97982D
analogous
#2D6198 #2E2D98 #632D98
triadic
#2E2D98 #982E2D #2D982E
tetradic
#2E2D98 #982D61 #97982D #2D9863
square
#2E2D98 #982D61 #97982D #2D9863
split-complementary
#2E2D98 #98632D #61982D
monochromatic
#11113A #201F69 #2E2D98 #3E3DC5 #6D6CD3

Accessibility & contrast

On white

10.80
#2E2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2E2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2D98
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2D98#FFFFFF#000000##FFFFFF
##2E2D981.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2d98;
/* rgb */ color: rgb(46, 45, 152);
/* oklch */ color: oklch(37.7% 0.169 275.1);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2e2d98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2d98;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2d98",
  "rgb": {
    "r": 46,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 240.561,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37653,
    "c": 0.16863,
    "h": 275.1
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#2E2D98
secondary
#BABA66
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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