#2D2A7F#2D2A7F

#2D2A7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.139 H 277.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D2A7F
RGBrgb(45, 42, 127)
HSLhsl(242, 50%, 33%)
HSVhsv(242, 67%, 50%)
CMYKcmyk(64.6%, 66.9%, 0%, 50.2%)
CIE-LABlab(22.81, 28.87, -47.70)
CIE-LCHlch(22.81, 55.76, 301.18°)
OKLaboklab(34.66% 0.019 -0.1374)
OKLCHoklch(34.66% 0.139 277.9)
XYZxyz(5.7397, 3.7457, 20.4951)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A7F #7C7F2A
analogous
#2A517F #2D2A7F #572A7F
triadic
#2D2A7F #7F2D2A #2A7F2D
tetradic
#2D2A7F #7F2A51 #7C7F2A #2A7F57
square
#2D2A7F #7F2A51 #7C7F2A #2A7F57
split-complementary
#2D2A7F #7F572A #517F2A
monochromatic
#0C0C23 #1D1B51 #2D2A7F #3D39AD #5F5BC9

Accessibility & contrast

On white

12.01
#2D2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A7F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A7F#FFFFFF#000000##FFFFFF
##2D2A7F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2a7f;
/* rgb */ color: rgb(45, 42, 127);
/* oklch */ color: oklch(34.7% 0.139 277.9);
Tailwind
colors: {
  custom: {
    50: '#7064a5',
    500: '#2d2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a7f;
$custom-light: #7064a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a7f",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 242.118,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.13875,
    "h": 277.9
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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