#2D226F#2D226F

#2D226F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.127 H 282.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2D226F
RGBrgb(45, 34, 111)
HSLhsl(249, 53%, 28%)
HSVhsv(249, 69%, 44%)
CMYKcmyk(59.5%, 69.4%, 0%, 56.5%)
CIE-LABlab(19.43, 28.47, -43.00)
CIE-LCHlch(19.43, 51.57, 303.51°)
OKLaboklab(31.75% 0.0284 -0.1237)
OKLCHoklch(31.75% 0.127 282.9)
XYZxyz(4.5226, 2.8494, 15.3475)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D226F #646F22
analogous
#223D6F #2D226F #53226F
triadic
#2D226F #6F2D22 #226F2D
tetradic
#2D226F #6F223D #646F22 #226F53
square
#2D226F #6F223D #646F22 #226F53
split-complementary
#2D226F #6F5322 #3D6F22
monochromatic
#090717 #1A1440 #2D226F #40309E #5845C6

Accessibility & contrast

On white

13.38
#2D226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D226F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D226F#FFFFFF#000000##FFFFFF
##2D226F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0B3645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d226f;
/* rgb */ color: rgb(45, 34, 111);
/* oklch */ color: oklch(31.8% 0.127 282.9);
Tailwind
colors: {
  custom: {
    50: '#6e5e99',
    500: '#2d226f',
    950: '#000000',
  },
}
SCSS
$custom: #2d226f;
$custom-light: #6e5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d226f",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 248.571,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31754,
    "c": 0.12688,
    "h": 282.9
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#2D226F
secondary
#96A24A
accent
#DD4BC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D226F

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

Preview Lab → · Contrast checker → · Palette generator →

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