#2D2397#2D2397

#2D2397 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.178 H 276.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2D2397
RGBrgb(45, 35, 151)
HSLhsl(245, 62%, 36%)
HSVhsv(245, 77%, 59%)
CMYKcmyk(70.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.65, 41.31, -61.29)
CIE-LCHlch(23.65, 73.91, 303.98°)
OKLaboklab(35.98% 0.0199 -0.1771)
OKLCHoklch(35.98% 0.178 276.4)
XYZxyz(7.2673, 3.9937, 29.6600)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2397 #8D9723
analogous
#235397 #2D2397 #672397
triadic
#2D2397 #972D23 #23972D
tetradic
#2D2397 #972353 #8D9723 #239767
square
#2D2397 #972353 #8D9723 #239767
split-complementary
#2D2397 #976723 #539723
monochromatic
#0F0C34 #1E1765 #2D2397 #3C2FC9 #665BD9

Accessibility & contrast

On white

11.67
#2D2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2397
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2397#FFFFFF#000000##FFFFFF
##2D23971.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2397;
/* rgb */ color: rgb(45, 35, 151);
/* oklch */ color: oklch(36.0% 0.178 276.4);
Tailwind
colors: {
  custom: {
    50: '#7660b7',
    500: '#2d2397',
    950: '#000000',
  },
}
SCSS
$custom: #2d2397;
$custom-light: #7660b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2397",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 245.172,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35977,
    "c": 0.17824,
    "h": 276.4
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#2D2397
secondary
#B5BE58
accent
#E542D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2397

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

Preview Lab → · Contrast checker → · Palette generator →

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