#2D2197#2D2197

#2D2197 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.180 H 276.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2D2197
RGBrgb(45, 33, 151)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 59%)
CMYKcmyk(70.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.27, 42.40, -61.92)
CIE-LCHlch(23.27, 75.04, 304.40°)
OKLaboklab(35.71% 0.021 -0.1789)
OKLCHoklch(35.71% 0.18 276.7)
XYZxyz(7.2101, 3.8793, 29.6410)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2197 #8B9721
analogous
#215097 #2D2197 #682197
triadic
#2D2197 #972D21 #21972D
tetradic
#2D2197 #972150 #8B9721 #219768
square
#2D2197 #972150 #8B9721 #219768
split-complementary
#2D2197 #976821 #509721
monochromatic
#0F0B33 #1E1665 #2D2197 #3C2CC9 #6558DA

Accessibility & contrast

On white

11.82
#2D2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2197
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2197#FFFFFF#000000##FFFFFF
##2D21971.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2197;
/* rgb */ color: rgb(45, 33, 151);
/* oklch */ color: oklch(35.7% 0.180 276.7);
Tailwind
colors: {
  custom: {
    50: '#765fb7',
    500: '#2d2197',
    950: '#000000',
  },
}
SCSS
$custom: #2d2197;
$custom-light: #765fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2197",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 246.102,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.18017,
    "h": 276.7
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#2D2197
secondary
#B4BE55
accent
#E741D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2197

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

Preview Lab → · Contrast checker → · Palette generator →

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