#2D227E#2D227E

#2D227E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.147 H 280.1°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2D227E
RGBrgb(45, 34, 126)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(64.3%, 73%, 0%, 50.6%)
CIE-LABlab(20.86, 33.57, -50.27)
CIE-LCHlch(20.86, 60.45, 303.73°)
OKLaboklab(33.22% 0.0259 -0.145)
OKLCHoklch(33.22% 0.147 280.1)
XYZxyz(5.4189, 3.2079, 20.0682)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D227E #737E22
analogous
#22457E #2D227E #5B227E
triadic
#2D227E #7E2D22 #227E2D
tetradic
#2D227E #7E2245 #737E22 #227E5B
square
#2D227E #7E2245 #737E22 #227E5B
split-complementary
#2D227E #7E5B22 #457E22
monochromatic
#0B081E #1C154E #2D227E #3E2FAE #5B4CCF

Accessibility & contrast

On white

12.79
#2D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D227E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D227E#FFFFFF#000000##FFFFFF
##2D227E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d227e;
/* rgb */ color: rgb(45, 34, 126);
/* oklch */ color: oklch(33.2% 0.147 280.1);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2d227e',
    950: '#000000',
  },
}
SCSS
$custom: #2d227e;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d227e",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 247.174,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33218,
    "c": 0.14727,
    "h": 280.1
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#2D227E
secondary
#A4B14B
accent
#E147CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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