#2D229F#2D229F

#2D229F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.189 H 275.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2D229F
RGBrgb(45, 34, 159)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 62%)
CMYKcmyk(71.7%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.34, 44.44, -65.05)
CIE-LCHlch(24.34, 78.78, 304.34°)
OKLaboklab(36.72% 0.0185 -0.1881)
OKLCHoklch(36.72% 0.189 275.6)
XYZxyz(7.9102, 4.2044, 33.1888)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229F #949F22
analogous
#22559F #2D229F #6B229F
triadic
#2D229F #9F2D22 #229F2D
tetradic
#2D229F #9F2255 #949F22 #229F6B
square
#2D229F #9F2255 #949F22 #229F6B
split-complementary
#2D229F #9F6B22 #559F22
monochromatic
#100C3A #1F176D #2D229F #3B2DD1 #6A5FDD

Accessibility & contrast

On white

11.41
#2D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D229F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229F#FFFFFF#000000##FFFFFF
##2D229F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d229f;
/* rgb */ color: rgb(45, 34, 159);
/* oklch */ color: oklch(36.7% 0.189 275.6);
Tailwind
colors: {
  custom: {
    50: '#7860bd',
    500: '#2d229f',
    950: '#000000',
  },
}
SCSS
$custom: #2d229f;
$custom-light: #7860bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229f",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 245.28,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36718,
    "c": 0.189,
    "h": 275.6
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#2D229F
secondary
#B8C15B
accent
#E840D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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