#2D2974#2D2974

#2D2974 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.124 H 279.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2D2974
RGBrgb(45, 41, 116)
HSLhsl(243, 48%, 31%)
HSVhsv(243, 65%, 45%)
CMYKcmyk(61.2%, 64.7%, 0%, 54.5%)
CIE-LABlab(21.60, 25.63, -42.69)
CIE-LCHlch(21.60, 49.79, 300.98°)
OKLaboklab(33.47% 0.0209 -0.1227)
OKLCHoklch(33.47% 0.124 279.7)
XYZxyz(5.0265, 3.4044, 16.9118)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2974 #707429
analogous
#294A74 #2D2974 #522974
triadic
#2D2974 #742D29 #29742D
tetradic
#2D2974 #74294A #707429 #297452
square
#2D2974 #74294A #707429 #297452
split-complementary
#2D2974 #745229 #4A7429
monochromatic
#0A091A #1B1947 #2D2974 #3F39A1 #5A55C3

Accessibility & contrast

On white

12.49
#2D2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D2974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2974
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2974#FFFFFF#000000##FFFFFF
##2D29741.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2974;
/* rgb */ color: rgb(45, 41, 116);
/* oklch */ color: oklch(33.5% 0.124 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e639d',
    500: '#2d2974',
    950: '#000000',
  },
}
SCSS
$custom: #2d2974;
$custom-light: #6e639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2974",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 243.2,
    "s": 47.771,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33468,
    "c": 0.12448,
    "h": 279.7
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#2D2974
secondary
#A2A653
accent
#D750D0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2974

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

Preview Lab → · Contrast checker → · Palette generator →

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