#2D2697#2D2697

#2D2697 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.175 H 276.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2D2697
RGBrgb(45, 38, 151)
HSLhsl(244, 60%, 37%)
HSVhsv(244, 75%, 59%)
CMYKcmyk(70.2%, 74.8%, 0%, 40.8%)
CIE-LABlab(24.25, 39.62, -60.30)
CIE-LCHlch(24.25, 72.15, 303.31°)
OKLaboklab(36.4% 0.0182 -0.1743)
OKLCHoklch(36.4% 0.175 276)
XYZxyz(7.3594, 4.1778, 29.6907)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2697 #909726
analogous
#265897 #2D2697 #662697
triadic
#2D2697 #972D26 #26972D
tetradic
#2D2697 #972658 #909726 #269766
square
#2D2697 #972658 #909726 #269766
split-complementary
#2D2697 #976626 #589726
monochromatic
#100D35 #1E1A66 #2D2697 #3C32C8 #6860D7

Accessibility & contrast

On white

11.44
#2D2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2697
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2697#FFFFFF#000000##FFFFFF
##2D26971.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2697;
/* rgb */ color: rgb(45, 38, 151);
/* oklch */ color: oklch(36.4% 0.175 276.0);
Tailwind
colors: {
  custom: {
    50: '#7662b7',
    500: '#2d2697',
    950: '#000000',
  },
}
SCSS
$custom: #2d2697;
$custom-light: #7662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2697",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 243.717,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36402,
    "c": 0.17522,
    "h": 276
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#2D2697
secondary
#B6BC5C
accent
#E345D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2697

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

Preview Lab → · Contrast checker → · Palette generator →

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