#2D2190#2D2190

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

Color values

HEX#2D2190
RGBrgb(45, 33, 144)
HSLhsl(246, 63%, 35%)
HSVhsv(246, 77%, 56%)
CMYKcmyk(68.7%, 77.1%, 0%, 43.5%)
CIE-LABlab(22.51, 40.13, -58.84)
CIE-LCHlch(22.51, 71.23, 304.29°)
OKLaboklab(34.95% 0.0227 -0.17)
OKLCHoklch(34.95% 0.172 277.6)
XYZxyz(6.6585, 3.6586, 26.7354)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2190 #849021
analogous
#214D90 #2D2190 #642190
triadic
#2D2190 #902D21 #21902D
tetradic
#2D2190 #90214D #849021 #219064
square
#2D2190 #90214D #849021 #219064
split-complementary
#2D2190 #906421 #4D9021
monochromatic
#0E0A2C #1D165E #2D2190 #3D2CC2 #6254D8

Accessibility & contrast

On white

12.13
#2D2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D2190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2190
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2190#FFFFFF#000000##FFFFFF
##2D21901.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2190;
/* rgb */ color: rgb(45, 33, 144);
/* oklch */ color: oklch(34.9% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#755fb2',
    500: '#2d2190',
    950: '#000000',
  },
}
SCSS
$custom: #2d2190;
$custom-light: #755fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2190",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 246.486,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34949,
    "c": 0.1715,
    "h": 277.6
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#2D2190
secondary
#B0BB51
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2190

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

Preview Lab → · Contrast checker → · Palette generator →

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