#2D2889#2D2889

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

Color values

HEX#2D2889
RGBrgb(45, 40, 137)
HSLhsl(243, 55%, 35%)
HSVhsv(243, 71%, 54%)
CMYKcmyk(67.2%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.27, 33.65, -53.23)
CIE-LCHlch(23.27, 62.97, 302.30°)
OKLaboklab(35.28% 0.0194 -0.1536)
OKLCHoklch(35.28% 0.155 277.2)
XYZxyz(6.3549, 3.8811, 24.0763)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2889 #848928
analogous
#285389 #2D2889 #5E2889
triadic
#2D2889 #892D28 #28892D
tetradic
#2D2889 #892853 #848928 #28895E
square
#2D2889 #892853 #848928 #28895E
split-complementary
#2D2889 #895E28 #538928
monochromatic
#0E0C2A #1D1A5A #2D2889 #3D36B8 #625CCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2889#FFFFFF#000000##FFFFFF
##2D28891.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)
#003C8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2889;
/* rgb */ color: rgb(45, 40, 137);
/* oklch */ color: oklch(35.3% 0.155 277.2);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2d2889',
    950: '#000000',
  },
}
SCSS
$custom: #2d2889;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2889",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 243.093,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35279,
    "c": 0.15485,
    "h": 277.2
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#2D2889
secondary
#B0B558
accent
#DE4AD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2889

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

Preview Lab → · Contrast checker → · Palette generator →

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