#2D2794#2D2794

#2D2794 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.170 H 276.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2D2794
RGBrgb(45, 39, 148)
HSLhsl(243, 58%, 37%)
HSVhsv(243, 74%, 58%)
CMYKcmyk(69.6%, 73.6%, 0%, 42%)
CIE-LABlab(24.15, 38.02, -58.61)
CIE-LCHlch(24.15, 69.87, 302.97°)
OKLaboklab(36.24% 0.0182 -0.1694)
OKLCHoklch(36.24% 0.17 276.1)
XYZxyz(7.1513, 4.1464, 28.4347)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2794 #8E9427
analogous
#275894 #2D2794 #642794
triadic
#2D2794 #942D27 #27942D
tetradic
#2D2794 #942758 #8E9427 #279464
square
#2D2794 #942758 #8E9427 #279464
split-complementary
#2D2794 #946427 #589427
monochromatic
#100D33 #1E1A64 #2D2794 #3C34C4 #6760D5

Accessibility & contrast

On white

11.48
#2D2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2794
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2794#FFFFFF#000000##FFFFFF
##2D27941.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2794;
/* rgb */ color: rgb(45, 39, 148);
/* oklch */ color: oklch(36.2% 0.170 276.1);
Tailwind
colors: {
  custom: {
    50: '#7563b5',
    500: '#2d2794',
    950: '#000000',
  },
}
SCSS
$custom: #2d2794;
$custom-light: #7563b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2794",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 243.303,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36237,
    "c": 0.17034,
    "h": 276.1
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#2D2794
secondary
#B5BB5C
accent
#E246D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2794

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

Preview Lab → · Contrast checker → · Palette generator →

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