#2D2880#2D2880

#2D2880 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.143 H 278.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2D2880
RGBrgb(45, 40, 128)
HSLhsl(243, 52%, 33%)
HSVhsv(243, 69%, 50%)
CMYKcmyk(64.8%, 68.8%, 0%, 49.8%)
CIE-LABlab(22.42, 30.52, -48.97)
CIE-LCHlch(22.42, 57.70, 301.93°)
OKLaboklab(34.4% 0.0207 -0.1412)
OKLCHoklch(34.4% 0.143 278.3)
XYZxyz(5.7360, 3.6335, 20.8170)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2880 #7B8028
analogous
#284F80 #2D2880 #592880
triadic
#2D2880 #802D28 #28802D
tetradic
#2D2880 #80284F #7B8028 #288059
square
#2D2880 #80284F #7B8028 #288059
split-complementary
#2D2880 #805928 #4F8028
monochromatic
#0C0B23 #1D1951 #2D2880 #3D37AF #5E58CB

Accessibility & contrast

On white

12.16
#2D2880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D2880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2880
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2880#FFFFFF#000000##FFFFFF
##2D28801.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2880;
/* rgb */ color: rgb(45, 40, 128);
/* oklch */ color: oklch(34.4% 0.143 278.3);
Tailwind
colors: {
  custom: {
    50: '#7162a6',
    500: '#2d2880',
    950: '#000000',
  },
}
SCSS
$custom: #2d2880;
$custom-light: #7162a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2880",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 243.409,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.14268,
    "h": 278.3
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#2D2880
secondary
#ABB054
accent
#DC4CD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2880

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

Preview Lab → · Contrast checker → · Palette generator →

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