#2D227F#2D227F

#2D227F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.149 H 280.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2D227F
RGBrgb(45, 34, 127)
HSLhsl(247, 58%, 32%)
HSVhsv(247, 73%, 50%)
CMYKcmyk(64.6%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.96, 33.91, -50.74)
CIE-LCHlch(20.96, 61.03, 303.75°)
OKLaboklab(33.32% 0.0257 -0.1463)
OKLCHoklch(33.32% 0.149 280)
XYZxyz(5.4838, 3.2338, 20.4098)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D227F #747F22
analogous
#22467F #2D227F #5C227F
triadic
#2D227F #7F2D22 #227F2D
tetradic
#2D227F #7F2246 #747F22 #227F5C
square
#2D227F #7F2246 #747F22 #227F5C
split-complementary
#2D227F #7F5C22 #467F22
monochromatic
#0B081E #1C154F #2D227F #3E2FAF #5C4CCF

Accessibility & contrast

On white

12.75
#2D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D227F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D227F#FFFFFF#000000##FFFFFF
##2D227F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d227f;
/* rgb */ color: rgb(45, 34, 127);
/* oklch */ color: oklch(33.3% 0.149 280.0);
Tailwind
colors: {
  custom: {
    50: '#715ea5',
    500: '#2d227f',
    950: '#000000',
  },
}
SCSS
$custom: #2d227f;
$custom-light: #715ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d227f",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 247.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33319,
    "c": 0.14859,
    "h": 280
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#2D227F
secondary
#A5B24B
accent
#E147CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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