#2D2A85#2D2A85

#2D2A85 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.147 H 277.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2D2A85
RGBrgb(45, 42, 133)
HSLhsl(242, 52%, 34%)
HSVhsv(242, 68%, 52%)
CMYKcmyk(66.2%, 68.4%, 0%, 47.8%)
CIE-LABlab(23.36, 30.99, -50.58)
CIE-LCHlch(23.36, 59.32, 301.49°)
OKLaboklab(35.23% 0.0184 -0.1459)
OKLCHoklch(35.23% 0.147 277.2)
XYZxyz(6.1424, 3.9068, 22.6161)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A85 #82852A
analogous
#2A5585 #2D2A85 #5B2A85
triadic
#2D2A85 #852D2A #2A852D
tetradic
#2D2A85 #852A55 #82852A #2A855B
square
#2D2A85 #852A55 #82852A #2A855B
split-complementary
#2D2A85 #855B2A #55852A
monochromatic
#0E0D28 #1D1B56 #2D2A85 #3D39B4 #615DCC

Accessibility & contrast

On white

11.79
#2D2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A85
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A85#FFFFFF#000000##FFFFFF
##2D2A851.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2a85;
/* rgb */ color: rgb(45, 42, 133);
/* oklch */ color: oklch(35.2% 0.147 277.2);
Tailwind
colors: {
  custom: {
    50: '#7264a9',
    500: '#2d2a85',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a85;
$custom-light: #7264a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a85",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 241.978,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.14703,
    "h": 277.2
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#2D2A85
secondary
#AFB259
accent
#DB4CD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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