#2D2A7C#2D2A7C

#2D2A7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.135 H 278.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2D2A7C
RGBrgb(45, 42, 124)
HSLhsl(242, 49%, 33%)
HSVhsv(242, 66%, 49%)
CMYKcmyk(63.7%, 66.1%, 0%, 51.4%)
CIE-LABlab(22.54, 27.81, -46.24)
CIE-LCHlch(22.54, 53.96, 301.02°)
OKLaboklab(34.38% 0.0193 -0.1331)
OKLCHoklch(34.38% 0.135 278.2)
XYZxyz(5.5471, 3.6686, 19.4807)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A7C #797C2A
analogous
#2A507C #2D2A7C #562A7C
triadic
#2D2A7C #7C2D2A #2A7C2D
tetradic
#2D2A7C #7C2A50 #797C2A #2A7C56
square
#2D2A7C #7C2A50 #797C2A #2A7C56
split-complementary
#2D2A7C #7C562A #507C2A
monochromatic
#0C0B21 #1C1B4E #2D2A7C #3E39AA #5D59C7

Accessibility & contrast

On white

12.11
#2D2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2A7C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A7C#FFFFFF#000000##FFFFFF
##2D2A7C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2a7c;
/* rgb */ color: rgb(45, 42, 124);
/* oklch */ color: oklch(34.4% 0.135 278.2);
Tailwind
colors: {
  custom: {
    50: '#7064a3',
    500: '#2d2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a7c;
$custom-light: #7064a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a7c",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 242.195,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34379,
    "c": 0.13454,
    "h": 278.2
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#2D2A7C
secondary
#A9AD55
accent
#D94FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2D2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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