#2E2A94#2E2A94

#2E2A94 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.167 H 276.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2E2A94
RGBrgb(46, 42, 148)
HSLhsl(242, 56%, 37%)
HSVhsv(242, 72%, 58%)
CMYKcmyk(68.9%, 71.6%, 0%, 42%)
CIE-LABlab(24.87, 36.35, -57.42)
CIE-LCHlch(24.87, 67.96, 302.33°)
OKLaboklab(36.77% 0.0175 -0.1659)
OKLCHoklch(36.77% 0.167 276)
XYZxyz(7.2982, 4.3742, 28.4709)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A94 #90942A
analogous
#2A5B94 #2E2A94 #632A94
triadic
#2E2A94 #942E2A #2A942E
tetradic
#2E2A94 #942A5B #90942A #2A9463
square
#2E2A94 #942A5B #90942A #2A9463
split-complementary
#2E2A94 #94632A #5B942A
monochromatic
#100F35 #1F1C64 #2E2A94 #3D38C4 #6965D3

Accessibility & contrast

On white

11.20
#2E2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A94
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A94#FFFFFF#000000##FFFFFF
##2E2A941.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e2a94;
/* rgb */ color: rgb(46, 42, 148);
/* oklch */ color: oklch(36.8% 0.167 276.0);
Tailwind
colors: {
  custom: {
    50: '#7565b4',
    500: '#2e2a94',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a94;
$custom-light: #7565b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a94",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 242.264,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36772,
    "c": 0.1668,
    "h": 276
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#2E2A94
secondary
#B6B960
accent
#DF49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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