#2D2291#2D2291

#2D2291 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.172 H 277.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D2291
RGBrgb(45, 34, 145)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 77%, 57%)
CMYKcmyk(69%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.81, 39.90, -58.96)
CIE-LCHlch(22.81, 71.20, 304.09°)
OKLaboklab(35.2% 0.0219 -0.1704)
OKLCHoklch(35.2% 0.172 277.3)
XYZxyz(6.7634, 3.7457, 27.1491)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2291 #869122
analogous
#224E91 #2D2291 #642291
triadic
#2D2291 #912D22 #22912D
tetradic
#2D2291 #91224E #869122 #229164
square
#2D2291 #91224E #869122 #229164
split-complementary
#2D2291 #916422 #4E9122
monochromatic
#0E0B2E #1E165F #2D2291 #3C2EC3 #6356D7

Accessibility & contrast

On white

12.01
#2D2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2291
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2291#FFFFFF#000000##FFFFFF
##2D22911.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2291;
/* rgb */ color: rgb(45, 34, 145);
/* oklch */ color: oklch(35.2% 0.172 277.3);
Tailwind
colors: {
  custom: {
    50: '#755fb2',
    500: '#2d2291',
    950: '#000000',
  },
}
SCSS
$custom: #2d2291;
$custom-light: #755fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2291",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 245.946,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35195,
    "c": 0.17176,
    "h": 277.3
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#2D2291
secondary
#B1BB53
accent
#E543D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2291

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

Preview Lab → · Contrast checker → · Palette generator →

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