#2E2A98#2E2A98

#2E2A98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.172 H 275.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2E2A98
RGBrgb(46, 42, 152)
HSLhsl(242, 57%, 38%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(69.7%, 72.4%, 0%, 40.4%)
CIE-LABlab(25.27, 37.71, -59.23)
CIE-LCHlch(25.27, 70.22, 302.49°)
OKLaboklab(37.18% 0.0169 -0.1711)
OKLCHoklch(37.18% 0.172 275.6)
XYZxyz(7.6203, 4.5031, 30.1673)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A98 #94982A
analogous
#2A5D98 #2E2A98 #652A98
triadic
#2E2A98 #982E2A #2A982E
tetradic
#2E2A98 #982A5D #94982A #2A9865
square
#2E2A98 #982A5D #94982A #2A9865
split-complementary
#2E2A98 #98652A #5D982A
monochromatic
#111038 #1F1D68 #2E2A98 #3D37C8 #6B67D5

Accessibility & contrast

On white

11.05
#2E2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A98
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A98#FFFFFF#000000##FFFFFF
##2E2A981.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2a98;
/* rgb */ color: rgb(46, 42, 152);
/* oklch */ color: oklch(37.2% 0.172 275.6);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2e2a98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a98;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a98",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 242.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37177,
    "c": 0.17198,
    "h": 275.6
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#2E2A98
secondary
#B8BB62
accent
#E048DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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