#2E2A9C#2E2A9C

#2E2A9C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.177 H 275.2°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2E2A9C
RGBrgb(46, 42, 156)
HSLhsl(242, 58%, 39%)
HSVhsv(242, 73%, 61%)
CMYKcmyk(70.5%, 73.1%, 0%, 38.8%)
CIE-LABlab(25.67, 39.07, -61.01)
CIE-LCHlch(25.67, 72.45, 302.64°)
OKLaboklab(37.59% 0.0162 -0.1764)
OKLCHoklch(37.59% 0.177 275.2)
XYZxyz(7.9534, 4.6363, 31.9218)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A9C #989C2A
analogous
#2A5F9C #2E2A9C #672A9C
triadic
#2E2A9C #9C2E2A #2A9C2E
tetradic
#2E2A9C #9C2A5F #989C2A #2A9C67
square
#2E2A9C #9C2A5F #989C2A #2A9C67
split-complementary
#2E2A9C #9C672A #5F9C2A
monochromatic
#12103C #201D6C #2E2A9C #3E39CA #6D6AD7

Accessibility & contrast

On white

10.90
#2E2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A9C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A9C#FFFFFF#000000##FFFFFF
##2E2A9C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2a9c;
/* rgb */ color: rgb(46, 42, 156);
/* oklch */ color: oklch(37.6% 0.177 275.2);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2e2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a9c;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a9c",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 242.105,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37587,
    "c": 0.1771,
    "h": 275.2
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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