#2D2086#2D2086

#2D2086 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.160 H 279.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2D2086
RGBrgb(45, 32, 134)
HSLhsl(248, 61%, 33%)
HSVhsv(248, 76%, 53%)
CMYKcmyk(66.4%, 76.1%, 0%, 47.5%)
CIE-LABlab(21.25, 37.41, -54.67)
CIE-LCHlch(21.25, 66.25, 304.38°)
OKLaboklab(33.74% 0.0257 -0.1578)
OKLCHoklch(33.74% 0.16 279.2)
XYZxyz(5.9004, 3.3117, 22.8779)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2086 #798620
analogous
#204686 #2D2086 #602086
triadic
#2D2086 #862D20 #20862D
tetradic
#2D2086 #862046 #798620 #208660
square
#2D2086 #862046 #798620 #208660
split-complementary
#2D2086 #866020 #468620
monochromatic
#0C0823 #1C1455 #2D2086 #3E2CB7 #5D4CD4

Accessibility & contrast

On white

12.63
#2D2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2086
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2086#FFFFFF#000000##FFFFFF
##2D20861.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2086;
/* rgb */ color: rgb(45, 32, 134);
/* oklch */ color: oklch(33.7% 0.160 279.2);
Tailwind
colors: {
  custom: {
    50: '#735daa',
    500: '#2d2086',
    950: '#000000',
  },
}
SCSS
$custom: #2d2086;
$custom-light: #735daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2086",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 247.647,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33744,
    "c": 0.1599,
    "h": 279.2
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#2D2086
secondary
#A9B74B
accent
#E543D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2086

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

Preview Lab → · Contrast checker → · Palette generator →

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