#2D2A97#2D2A97

#2D2A97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.171 H 275.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2D2A97
RGBrgb(45, 42, 151)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 59%)
CMYKcmyk(70.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.10, 37.25, -58.90)
CIE-LCHlch(25.10, 69.69, 302.31°)
OKLaboklab(37.01% 0.0157 -0.1702)
OKLCHoklch(37.01% 0.171 275.3)
XYZxyz(7.4942, 4.4475, 29.7357)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A97 #94972A
analogous
#2A5E97 #2D2A97 #632A97
triadic
#2D2A97 #972D2A #2A972D
tetradic
#2D2A97 #972A5E #94972A #2A9763
square
#2D2A97 #972A5E #94972A #2A9763
split-complementary
#2D2A97 #97632A #5E972A
monochromatic
#100F37 #1F1D67 #2D2A97 #3B37C7 #6A67D5

Accessibility & contrast

On white

11.11
#2D2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A97
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A97#FFFFFF#000000##FFFFFF
##2D2A971.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2a97;
/* rgb */ color: rgb(45, 42, 151);
/* oklch */ color: oklch(37.0% 0.171 275.3);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2d2a97',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a97;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a97",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 241.651,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37006,
    "c": 0.17094,
    "h": 275.3
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#2D2A97
secondary
#B8BB62
accent
#E048DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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