#2A2E76#2A2E76

#2A2E76 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.121 H 275.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2E76
RGBrgb(42, 46, 118)
HSLhsl(237, 48%, 31%)
HSVhsv(237, 64%, 46%)
CMYKcmyk(64.4%, 61%, 0%, 53.7%)
CIE-LABlab(22.84, 22.41, -41.95)
CIE-LCHlch(22.84, 47.56, 298.11°)
OKLaboklab(34.38% 0.0118 -0.1206)
OKLCHoklch(34.38% 0.121 275.6)
XYZxyz(5.2008, 3.7538, 17.5865)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E76 #76722A
analogous
#2A5476 #2A2E76 #4C2A76
triadic
#2A2E76 #762A2E #2E762A
tetradic
#2A2E76 #762A54 #76722A #2A764C
square
#2A2E76 #762A54 #76722A #2A764C
split-complementary
#2A2E76 #764C2A #54762A
monochromatic
#0A0B1C #1A1C49 #2A2E76 #3A40A3 #575DC3

Accessibility & contrast

On white

11.99
#2A2E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E76
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E76#FFFFFF#000000##FFFFFF
##2A2E761.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2e76;
/* rgb */ color: rgb(42, 46, 118);
/* oklch */ color: oklch(34.4% 0.121 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d669e',
    500: '#2a2e76',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e76;
$custom-light: #6d669e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e76",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 236.842,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34377,
    "c": 0.12119,
    "h": 275.6
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#2A2E76
secondary
#A8A354
accent
#D051D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2E76

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

Preview Lab → · Contrast checker → · Palette generator →

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