#2A2D72#2A2D72

#2A2D72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.117 H 276.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2A2D72
RGBrgb(42, 45, 114)
HSLhsl(238, 46%, 31%)
HSVhsv(238, 63%, 45%)
CMYKcmyk(63.2%, 60.5%, 0%, 55.3%)
CIE-LABlab(22.24, 21.62, -40.36)
CIE-LCHlch(22.24, 45.79, 298.17°)
OKLaboklab(33.83% 0.0128 -0.1159)
OKLCHoklch(33.83% 0.117 276.3)
XYZxyz(4.9295, 3.5835, 16.3482)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D72 #726F2A
analogous
#2A5172 #2A2D72 #4B2A72
triadic
#2A2D72 #722A2D #2D722A
tetradic
#2A2D72 #722A51 #726F2A #2A724B
square
#2A2D72 #722A51 #726F2A #2A724B
split-complementary
#2A2D72 #724B2A #51722A
monochromatic
#090A19 #1A1B45 #2A2D72 #3A3F9F #565AC1

Accessibility & contrast

On white

12.23
#2A2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D72
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D72#FFFFFF#000000##FFFFFF
##2A2D721.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2d72;
/* rgb */ color: rgb(42, 45, 114);
/* oklch */ color: oklch(33.8% 0.117 276.3);
Tailwind
colors: {
  custom: {
    50: '#6c669b',
    500: '#2a2d72',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d72;
$custom-light: #6c669b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d72",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 237.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.11666,
    "h": 276.3
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#2A2D72
secondary
#A4A154
accent
#D052D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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