#2D2797#2D2797

#2D2797 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.174 H 275.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2D2797
RGBrgb(45, 39, 151)
HSLhsl(243, 59%, 37%)
HSVhsv(243, 74%, 59%)
CMYKcmyk(70.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.46, 39.04, -59.95)
CIE-LCHlch(24.46, 71.54, 303.07°)
OKLaboklab(36.55% 0.0176 -0.1733)
OKLCHoklch(36.55% 0.174 275.8)
XYZxyz(7.3918, 4.2426, 29.7015)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2797 #919727
analogous
#275997 #2D2797 #652797
triadic
#2D2797 #972D27 #27972D
tetradic
#2D2797 #972759 #919727 #279765
square
#2D2797 #972759 #919727 #279765
split-complementary
#2D2797 #976527 #599727
monochromatic
#100E36 #1F1A66 #2D2797 #3B34C8 #6862D6

Accessibility & contrast

On white

11.36
#2D2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2797
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2797#FFFFFF#000000##FFFFFF
##2D27971.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2797;
/* rgb */ color: rgb(45, 39, 151);
/* oklch */ color: oklch(36.5% 0.174 275.8);
Tailwind
colors: {
  custom: {
    50: '#7663b7',
    500: '#2d2797',
    950: '#000000',
  },
}
SCSS
$custom: #2d2797;
$custom-light: #7663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2797",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 243.214,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36549,
    "c": 0.17417,
    "h": 275.8
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#2D2797
secondary
#B7BC5E
accent
#E246DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2797

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

Preview Lab → · Contrast checker → · Palette generator →

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