#2D2290#2D2290

#2D2290 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.171 H 277.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2D2290
RGBrgb(45, 34, 144)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(68.7%, 76.4%, 0%, 43.5%)
CIE-LABlab(22.71, 39.57, -58.52)
CIE-LCHlch(22.71, 70.64, 304.07°)
OKLaboklab(35.09% 0.0221 -0.1691)
OKLCHoklch(35.09% 0.171 277.4)
XYZxyz(6.6866, 3.7150, 26.7448)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2290 #859022
analogous
#224E90 #2D2290 #642290
triadic
#2D2290 #902D22 #22902D
tetradic
#2D2290 #90224E #859022 #229064
square
#2D2290 #90224E #859022 #229064
split-complementary
#2D2290 #906422 #4E9022
monochromatic
#0E0B2D #1E165E #2D2290 #3C2EC2 #6255D7

Accessibility & contrast

On white

12.05
#2D2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2290
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2290#FFFFFF#000000##FFFFFF
##2D22901.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2290;
/* rgb */ color: rgb(45, 34, 144);
/* oklch */ color: oklch(35.1% 0.171 277.4);
Tailwind
colors: {
  custom: {
    50: '#755fb2',
    500: '#2d2290',
    950: '#000000',
  },
}
SCSS
$custom: #2d2290;
$custom-light: #755fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2290",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 246,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35088,
    "c": 0.1705,
    "h": 277.4
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#2D2290
secondary
#B0BB53
accent
#E543D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D2290

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

Preview Lab → · Contrast checker → · Palette generator →

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