#2D227B#2D227B

#2D227B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.143 H 280.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2D227B
RGBrgb(45, 34, 123)
HSLhsl(247, 57%, 31%)
HSVhsv(247, 72%, 48%)
CMYKcmyk(63.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.56, 32.55, -48.85)
CIE-LCHlch(20.56, 58.70, 303.68°)
OKLaboklab(32.92% 0.0265 -0.1408)
OKLCHoklch(32.92% 0.143 280.7)
XYZxyz(5.2282, 3.1316, 19.0640)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D227B #707B22
analogous
#22437B #2D227B #59227B
triadic
#2D227B #7B2D22 #227B2D
tetradic
#2D227B #7B2243 #707B22 #227B59
square
#2D227B #7B2243 #707B22 #227B59
split-complementary
#2D227B #7B5922 #437B22
monochromatic
#0A071B #1B154B #2D227B #3F2FAB #5A4ACD

Accessibility & contrast

On white

12.91
#2D227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D227B
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D227B#FFFFFF#000000##FFFFFF
##2D227B1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d227b;
/* rgb */ color: rgb(45, 34, 123);
/* oklch */ color: oklch(32.9% 0.143 280.7);
Tailwind
colors: {
  custom: {
    50: '#705ea2',
    500: '#2d227b',
    950: '#000000',
  },
}
SCSS
$custom: #2d227b;
$custom-light: #705ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d227b",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 247.416,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32918,
    "c": 0.14327,
    "h": 280.7
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#2D227B
secondary
#A2AE4B
accent
#E048CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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