#2D2879#2D2879

#2D2879 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.133 H 279.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2D2879
RGBrgb(45, 40, 121)
HSLhsl(244, 50%, 32%)
HSVhsv(244, 67%, 47%)
CMYKcmyk(62.8%, 66.9%, 0%, 52.5%)
CIE-LABlab(21.78, 28.06, -45.58)
CIE-LCHlch(21.78, 53.52, 301.62°)
OKLaboklab(33.74% 0.0215 -0.1312)
OKLCHoklch(33.74% 0.133 279.3)
XYZxyz(5.2911, 3.4556, 18.4736)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2879 #747928
analogous
#284C79 #2D2879 #562879
triadic
#2D2879 #792D28 #28792D
tetradic
#2D2879 #79284C #747928 #287956
square
#2D2879 #79284C #747928 #287956
split-complementary
#2D2879 #795628 #4C7928
monochromatic
#0B0A1D #1C194B #2D2879 #3E37A7 #5C55C7

Accessibility & contrast

On white

12.42
#2D2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2879
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2879#FFFFFF#000000##FFFFFF
##2D28791.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2879;
/* rgb */ color: rgb(45, 40, 121);
/* oklch */ color: oklch(33.7% 0.133 279.3);
Tailwind
colors: {
  custom: {
    50: '#6f62a0',
    500: '#2d2879',
    950: '#000000',
  },
}
SCSS
$custom: #2d2879;
$custom-light: #6f62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2879",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 243.704,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.13295,
    "h": 279.3
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#2D2879
secondary
#A5AB52
accent
#DA4ED1
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2879

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

Preview Lab → · Contrast checker → · Palette generator →

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