#2D2A7E#2D2A7E

#2D2A7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.137 H 278.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2D2A7E
RGBrgb(45, 42, 126)
HSLhsl(242, 50%, 33%)
HSVhsv(242, 67%, 49%)
CMYKcmyk(64.3%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.72, 28.52, -47.22)
CIE-LCHlch(22.72, 55.16, 301.13°)
OKLaboklab(34.56% 0.0191 -0.136)
OKLCHoklch(34.56% 0.137 278)
XYZxyz(5.6748, 3.7197, 20.1536)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A7E #7B7E2A
analogous
#2A517E #2D2A7E #572A7E
triadic
#2D2A7E #7E2D2A #2A7E2D
tetradic
#2D2A7E #7E2A51 #7B7E2A #2A7E57
square
#2D2A7E #7E2A51 #7B7E2A #2A7E57
split-complementary
#2D2A7E #7E572A #517E2A
monochromatic
#0C0B22 #1D1B50 #2D2A7E #3D39AC #5E5AC8

Accessibility & contrast

On white

12.04
#2D2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A7E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A7E#FFFFFF#000000##FFFFFF
##2D2A7E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2a7e;
/* rgb */ color: rgb(45, 42, 126);
/* oklch */ color: oklch(34.6% 0.137 278.0);
Tailwind
colors: {
  custom: {
    50: '#7064a4',
    500: '#2d2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a7e;
$custom-light: #7064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a7e",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 242.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34564,
    "c": 0.13736,
    "h": 278
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#2D2A7E
secondary
#ABAE56
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2D2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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