#2D2194#2D2194

#2D2194 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.176 H 277.1°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2D2194
RGBrgb(45, 33, 148)
HSLhsl(246, 64%, 35%)
HSVhsv(246, 78%, 58%)
CMYKcmyk(69.6%, 77.7%, 0%, 42%)
CIE-LABlab(22.94, 41.43, -60.61)
CIE-LCHlch(22.94, 73.41, 304.36°)
OKLaboklab(35.38% 0.0217 -0.1751)
OKLCHoklch(35.38% 0.176 277.1)
XYZxyz(6.9696, 3.7831, 28.3741)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2194 #889421
analogous
#214E94 #2D2194 #662194
triadic
#2D2194 #942D21 #21942D
tetradic
#2D2194 #94214E #889421 #219466
square
#2D2194 #94214E #889421 #219466
split-complementary
#2D2194 #946621 #4E9421
monochromatic
#0F0B30 #1E1662 #2D2194 #3C2CC6 #6456D9

Accessibility & contrast

On white

11.95
#2D2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D2194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2194
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2194#FFFFFF#000000##FFFFFF
##2D21941.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2194;
/* rgb */ color: rgb(45, 33, 148);
/* oklch */ color: oklch(35.4% 0.176 277.1);
Tailwind
colors: {
  custom: {
    50: '#765fb5',
    500: '#2d2194',
    950: '#000000',
  },
}
SCSS
$custom: #2d2194;
$custom-light: #765fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2194",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 246.261,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35382,
    "c": 0.17648,
    "h": 277.1
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#2D2194
secondary
#B2BD54
accent
#E741D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2194

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

Preview Lab → · Contrast checker → · Palette generator →

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