#2A2F52#2A2F52

#2A2F52 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.063 H 276.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2F52
RGBrgb(42, 47, 82)
HSLhsl(233, 32%, 24%)
HSVhsv(233, 49%, 32%)
CMYKcmyk(48.8%, 42.7%, 0%, 67.8%)
CIE-LABlab(20.57, 8.60, -22.09)
CIE-LCHlch(20.57, 23.70, 291.28°)
OKLaboklab(31.85% 0.0066 -0.0623)
OKLCHoklch(31.85% 0.063 276.1)
XYZxyz(3.4939, 3.1343, 8.4019)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F52 #524D2A
analogous
#2A4352 #2A2F52 #392A52
triadic
#2A2F52 #522A2F #2F522A
tetradic
#2A2F52 #522A43 #524D2A #2A5239
square
#2A2F52 #522A43 #524D2A #2A5239
split-complementary
#2A2F52 #52392A #43522A
monochromatic
#0A0C14 #15182A #2A2F52 #3F467A #535DA3

Accessibility & contrast

On white

12.91
#2A2F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A2F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F52
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F52#FFFFFF#000000##FFFFFF
##2A2F521.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223353
Deuteranopia (green-blind)
#1F3051
Tritanopia (blue-blind)
#1C363C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2f52;
/* rgb */ color: rgb(42, 47, 82);
/* oklch */ color: oklch(31.9% 0.063 276.1);
Tailwind
colors: {
  custom: {
    50: '#666783',
    500: '#2a2f52',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f52;
$custom-light: #666783;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f52",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 232.5,
    "s": 32.258,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.06263,
    "h": 276.1
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#2A2F52
secondary
#847E54
accent
#BB5FC8
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #2A2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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