#2D2574#2D2574

#2D2574 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.130 H 281.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2D2574
RGBrgb(45, 37, 116)
HSLhsl(246, 52%, 30%)
HSVhsv(246, 68%, 45%)
CMYKcmyk(61.2%, 68.1%, 0%, 54.5%)
CIE-LABlab(20.60, 28.26, -44.31)
CIE-LCHlch(20.60, 52.55, 302.53°)
OKLaboklab(32.74% 0.0249 -0.1275)
OKLCHoklch(32.74% 0.13 281)
XYZxyz(4.8952, 3.1416, 16.8681)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2574 #6C7425
analogous
#254474 #2D2574 #552574
triadic
#2D2574 #742D25 #25742D
tetradic
#2D2574 #742544 #6C7425 #257455
square
#2D2574 #742544 #6C7425 #257455
split-complementary
#2D2574 #745525 #447425
monochromatic
#090717 #1B1646 #2D2574 #3F34A2 #594DC6

Accessibility & contrast

On white

12.90
#2D2574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D2574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2574
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2574#FFFFFF#000000##FFFFFF
##2D25741.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#013949
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2574;
/* rgb */ color: rgb(45, 37, 116);
/* oklch */ color: oklch(32.7% 0.130 281.0);
Tailwind
colors: {
  custom: {
    50: '#6e609d',
    500: '#2d2574',
    950: '#000000',
  },
}
SCSS
$custom: #2d2574;
$custom-light: #6e609d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2574",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 116
  },
  "hsl": {
    "h": 246.076,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.32743,
    "c": 0.12989,
    "h": 281
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#2D2574
secondary
#9EA74E
accent
#DB4DCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2574

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

Preview Lab → · Contrast checker → · Palette generator →

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