#2A2D74#2A2D74

#2A2D74 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.0% C 0.120 H 276.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2D74
RGBrgb(42, 45, 116)
HSLhsl(238, 47%, 31%)
HSVhsv(238, 64%, 45%)
CMYKcmyk(63.8%, 61.2%, 0%, 54.5%)
CIE-LABlab(22.41, 22.36, -41.38)
CIE-LCHlch(22.41, 47.03, 298.38°)
OKLaboklab(34.01% 0.0128 -0.1189)
OKLCHoklch(34.01% 0.12 276.2)
XYZxyz(5.0446, 3.6296, 16.9544)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D74 #74712A
analogous
#2A5274 #2A2D74 #4C2A74
triadic
#2A2D74 #742A2D #2D742A
tetradic
#2A2D74 #742A52 #74712A #2A744C
square
#2A2D74 #742A52 #74712A #2A744C
split-complementary
#2A2D74 #744C2A #52742A
monochromatic
#090A1A #1A1C47 #2A2D74 #3A3EA1 #565BC2

Accessibility & contrast

On white

12.17
#2A2D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D74
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D74#FFFFFF#000000##FFFFFF
##2A2D741.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2d74;
/* rgb */ color: rgb(42, 45, 116);
/* oklch */ color: oklch(34.0% 0.120 276.2);
Tailwind
colors: {
  custom: {
    50: '#6c669d',
    500: '#2a2d74',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d74;
$custom-light: #6c669d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d74",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 237.568,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34005,
    "c": 0.11963,
    "h": 276.2
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#2A2D74
secondary
#A6A354
accent
#D151D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2D74

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

Preview Lab → · Contrast checker → · Palette generator →

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