#2E2A9B#2E2A9B

#2E2A9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.176 H 275.3°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2E2A9B
RGBrgb(46, 42, 155)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 73%, 61%)
CMYKcmyk(70.3%, 72.9%, 0%, 39.2%)
CIE-LABlab(25.57, 38.73, -60.57)
CIE-LCHlch(25.57, 71.90, 302.60°)
OKLaboklab(37.48% 0.0163 -0.1751)
OKLCHoklch(37.48% 0.176 275.3)
XYZxyz(7.8691, 4.6026, 31.4777)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A9B #979B2A
analogous
#2A5E9B #2E2A9B #662A9B
triadic
#2E2A9B #9B2E2A #2A9B2E
tetradic
#2E2A9B #9B2A5E #979B2A #2A9B66
square
#2E2A9B #9B2A5E #979B2A #2A9B66
split-complementary
#2E2A9B #9B662A #5E9B2A
monochromatic
#11103B #201D6B #2E2A9B #3E39C9 #6D69D6

Accessibility & contrast

On white

10.93
#2E2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A9B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A9B#FFFFFF#000000##FFFFFF
##2E2A9B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2a9b;
/* rgb */ color: rgb(46, 42, 155);
/* oklch */ color: oklch(37.5% 0.176 275.3);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2e2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a9b;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a9b",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 242.124,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.17583,
    "h": 275.3
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#2E2A9B
secondary
#BABD64
accent
#E147DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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