#2D227C#2D227C

#2D227C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 280.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2D227C
RGBrgb(45, 34, 124)
HSLhsl(247, 57%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(63.7%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.66, 32.89, -49.32)
CIE-LCHlch(20.66, 59.29, 303.70°)
OKLaboklab(33.02% 0.0263 -0.1422)
OKLCHoklch(33.02% 0.145 280.5)
XYZxyz(5.2912, 3.1568, 19.3954)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D227C #717C22
analogous
#22447C #2D227C #5A227C
triadic
#2D227C #7C2D22 #227C2D
tetradic
#2D227C #7C2244 #717C22 #227C5A
square
#2D227C #7C2244 #717C22 #227C5A
split-complementary
#2D227C #7C5A22 #447C22
monochromatic
#0A081C #1C154C #2D227C #3E2FAC #5B4BCE

Accessibility & contrast

On white

12.87
#2D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D227C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D227C#FFFFFF#000000##FFFFFF
##2D227C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d227c;
/* rgb */ color: rgb(45, 34, 124);
/* oklch */ color: oklch(33.0% 0.145 280.5);
Tailwind
colors: {
  custom: {
    50: '#705ea3',
    500: '#2d227c',
    950: '#000000',
  },
}
SCSS
$custom: #2d227c;
$custom-light: #705ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d227c",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 247.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33018,
    "c": 0.14461,
    "h": 280.5
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#2D227C
secondary
#A3AF4B
accent
#E048CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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