#2D2680#2D2680

#2D2680 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.145 H 278.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2D2680
RGBrgb(45, 38, 128)
HSLhsl(245, 54%, 33%)
HSVhsv(245, 70%, 50%)
CMYKcmyk(64.8%, 70.3%, 0%, 49.8%)
CIE-LABlab(21.95, 31.78, -49.74)
CIE-LCHlch(21.95, 59.03, 302.58°)
OKLaboklab(34.06% 0.0223 -0.1434)
OKLCHoklch(34.06% 0.145 278.8)
XYZxyz(5.6703, 3.5022, 20.7951)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2680 #798026
analogous
#264C80 #2D2680 #5A2680
triadic
#2D2680 #802D26 #26802D
tetradic
#2D2680 #80264C #798026 #26805A
square
#2D2680 #80264C #798026 #26805A
split-complementary
#2D2680 #805A26 #4C8026
monochromatic
#0C0A22 #1C1851 #2D2680 #3E34AF #5D54CC

Accessibility & contrast

On white

12.35
#2D2680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2680
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2680#FFFFFF#000000##FFFFFF
##2D26801.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2680;
/* rgb */ color: rgb(45, 38, 128);
/* oklch */ color: oklch(34.1% 0.145 278.8);
Tailwind
colors: {
  custom: {
    50: '#7161a6',
    500: '#2d2680',
    950: '#000000',
  },
}
SCSS
$custom: #2d2680;
$custom-light: #7161a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2680",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 128
  },
  "hsl": {
    "h": 244.667,
    "s": 54.217,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34063,
    "c": 0.14516,
    "h": 278.8
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#2D2680
secondary
#A9B151
accent
#DE4AD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2680

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

Preview Lab → · Contrast checker → · Palette generator →

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