#2D2897#2D2897

#2D2897 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.173 H 275.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2D2897
RGBrgb(45, 40, 151)
HSLhsl(243, 58%, 37%)
HSVhsv(243, 74%, 59%)
CMYKcmyk(70.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.67, 38.45, -59.61)
CIE-LCHlch(24.67, 70.93, 302.82°)
OKLaboklab(36.7% 0.017 -0.1723)
OKLCHoklch(36.7% 0.173 275.6)
XYZxyz(7.4251, 4.3092, 29.7126)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2897 #929728
analogous
#285A97 #2D2897 #652897
triadic
#2D2897 #972D28 #28972D
tetradic
#2D2897 #97285A #929728 #289765
square
#2D2897 #97285A #929728 #289765
split-complementary
#2D2897 #976528 #5A9728
monochromatic
#100E36 #1F1B67 #2D2897 #3B35C7 #6964D6

Accessibility & contrast

On white

11.28
#2D2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2897
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2897#FFFFFF#000000##FFFFFF
##2D28971.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2897;
/* rgb */ color: rgb(45, 40, 151);
/* oklch */ color: oklch(36.7% 0.173 275.6);
Tailwind
colors: {
  custom: {
    50: '#7663b7',
    500: '#2d2897',
    950: '#000000',
  },
}
SCSS
$custom: #2d2897;
$custom-light: #7663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2897",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 242.703,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36699,
    "c": 0.17311,
    "h": 275.6
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2D2897
secondary
#B7BC5F
accent
#E146DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2897

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

Preview Lab → · Contrast checker → · Palette generator →

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