#2D227D#2D227D

#2D227D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.146 H 280.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2D227D
RGBrgb(45, 34, 125)
HSLhsl(247, 57%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(64%, 72.8%, 0%, 51%)
CIE-LABlab(20.76, 33.23, -49.80)
CIE-LCHlch(20.76, 59.87, 303.72°)
OKLaboklab(33.12% 0.0261 -0.1436)
OKLCHoklch(33.12% 0.146 280.3)
XYZxyz(5.3547, 3.1822, 19.7301)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D227D #727D22
analogous
#22447D #2D227D #5A227D
triadic
#2D227D #7D2D22 #227D2D
tetradic
#2D227D #7D2244 #727D22 #227D5A
square
#2D227D #7D2244 #727D22 #227D5A
split-complementary
#2D227D #7D5A22 #447D22
monochromatic
#0A081D #1C154D #2D227D #3E2FAD #5B4BCE

Accessibility & contrast

On white

12.83
#2D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D227D
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D227D#FFFFFF#000000##FFFFFF
##2D227D1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d227d;
/* rgb */ color: rgb(45, 34, 125);
/* oklch */ color: oklch(33.1% 0.146 280.3);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2d227d',
    950: '#000000',
  },
}
SCSS
$custom: #2d227d;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d227d",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 247.253,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33118,
    "c": 0.14594,
    "h": 280.3
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#2D227D
secondary
#A3B04B
accent
#E047CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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