#2D2277#2D2277

#2D2277 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.138 H 281.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2D2277
RGBrgb(45, 34, 119)
HSLhsl(248, 56%, 30%)
HSVhsv(248, 71%, 47%)
CMYKcmyk(62.2%, 71.4%, 0%, 53.3%)
CIE-LABlab(20.18, 31.20, -46.93)
CIE-LCHlch(20.18, 56.35, 303.62°)
OKLaboklab(32.52% 0.0272 -0.1352)
OKLCHoklch(32.52% 0.138 281.4)
XYZxyz(4.9829, 3.0335, 17.7721)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2277 #6C7722
analogous
#224177 #2D2277 #582277
triadic
#2D2277 #772D22 #22772D
tetradic
#2D2277 #772241 #6C7722 #227758
square
#2D2277 #772241 #6C7722 #227758
split-complementary
#2D2277 #775822 #417722
monochromatic
#090718 #1B1447 #2D2277 #3F30A7 #5949CB

Accessibility & contrast

On white

13.07
#2D2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2277
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2277#FFFFFF#000000##FFFFFF
##2D22771.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d2277;
/* rgb */ color: rgb(45, 34, 119);
/* oklch */ color: oklch(32.5% 0.138 281.4);
Tailwind
colors: {
  custom: {
    50: '#6f5e9f',
    500: '#2d2277',
    950: '#000000',
  },
}
SCSS
$custom: #2d2277;
$custom-light: #6f5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2277",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 247.765,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32523,
    "c": 0.13788,
    "h": 281.4
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#2D2277
secondary
#9EAA4B
accent
#DF49CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D2277

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

Preview Lab → · Contrast checker → · Palette generator →

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