#2A2F76#2A2F76

#2A2F76 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.6% C 0.120 H 275.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2A2F76
RGBrgb(42, 47, 118)
HSLhsl(236, 48%, 31%)
HSVhsv(236, 64%, 46%)
CMYKcmyk(64.4%, 60.2%, 0%, 53.7%)
CIE-LABlab(23.11, 21.72, -41.51)
CIE-LCHlch(23.11, 46.85, 297.62°)
OKLaboklab(34.58% 0.0108 -0.1193)
OKLCHoklch(34.58% 0.12 275.2)
XYZxyz(5.2403, 3.8329, 17.5997)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F76 #76712A
analogous
#2A5576 #2A2F76 #4B2A76
triadic
#2A2F76 #762A2F #2F762A
tetradic
#2A2F76 #762A55 #76712A #2A764B
square
#2A2F76 #762A55 #76712A #2A764B
split-complementary
#2A2F76 #764B2A #55762A
monochromatic
#0A0B1C #1A1D49 #2A2F76 #3A41A3 #575EC3

Accessibility & contrast

On white

11.89
#2A2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F76
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F76#FFFFFF#000000##FFFFFF
##2A2F761.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2f76;
/* rgb */ color: rgb(42, 47, 118);
/* oklch */ color: oklch(34.6% 0.120 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c679e',
    500: '#2a2f76',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f76;
$custom-light: #6c679e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f76",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 236.053,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34578,
    "c": 0.1198,
    "h": 275.2
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#2A2F76
secondary
#A8A254
accent
#CE51D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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