#2E2A8C#2E2A8C

#2E2A8C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.156 H 276.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2E2A8C
RGBrgb(46, 42, 140)
HSLhsl(242, 54%, 36%)
HSVhsv(242, 70%, 55%)
CMYKcmyk(67.1%, 70%, 0%, 45.1%)
CIE-LABlab(24.10, 33.58, -53.75)
CIE-LCHlch(24.10, 63.38, 302.00°)
OKLaboklab(35.98% 0.0188 -0.1551)
OKLCHoklch(35.98% 0.156 276.9)
XYZxyz(6.6868, 4.1297, 25.2506)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A8C #888C2A
analogous
#2A578C #2E2A8C #5F2A8C
triadic
#2E2A8C #8C2E2A #2A8C2E
tetradic
#2E2A8C #8C2A57 #888C2A #2A8C5F
square
#2E2A8C #8C2A57 #888C2A #2A8C5F
split-complementary
#2E2A8C #8C5F2A #578C2A
monochromatic
#0F0E2E #1F1C5D #2E2A8C #3D38BB #6561D0

Accessibility & contrast

On white

11.50
#2E2A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E2A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A8C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A8C#FFFFFF#000000##FFFFFF
##2E2A8C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2a8c;
/* rgb */ color: rgb(46, 42, 140);
/* oklch */ color: oklch(36.0% 0.156 276.9);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2e2a8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a8c;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a8c",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 242.449,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35978,
    "c": 0.15625,
    "h": 276.9
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#2E2A8C
secondary
#B2B55C
accent
#DD4BD7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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