#2D3196#2D3196

#2D3196 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.162 H 273.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2D3196
RGBrgb(45, 49, 150)
HSLhsl(238, 54%, 38%)
HSVhsv(238, 70%, 59%)
CMYKcmyk(70%, 67.3%, 0%, 41.2%)
CIE-LABlab(26.61, 32.54, -55.81)
CIE-LCHlch(26.61, 64.60, 300.25°)
OKLaboklab(38.07% 0.0111 -0.1612)
OKLCHoklch(38.07% 0.162 273.9)
XYZxyz(7.6837, 4.9558, 29.3999)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3196 #96922D
analogous
#2D6596 #2D3196 #5D2D96
triadic
#2D3196 #962D31 #31962D
tetradic
#2D3196 #962D65 #96922D #2D965D
square
#2D3196 #962D65 #96922D #2D965D
split-complementary
#2D3196 #965D2D #65962D
monochromatic
#111238 #1F2267 #2D3196 #3C41C4 #6B6FD3

Accessibility & contrast

On white

10.55
#2D3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3196
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3196#FFFFFF#000000##FFFFFF
##2D31961.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3196;
/* rgb */ color: rgb(45, 49, 150);
/* oklch */ color: oklch(38.1% 0.162 273.9);
Tailwind
colors: {
  custom: {
    50: '#7569b6',
    500: '#2d3196',
    950: '#000000',
  },
}
SCSS
$custom: #2d3196;
$custom-light: #7569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3196",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 237.714,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.16154,
    "h": 273.9
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#2D3196
secondary
#B9B665
accent
#D84BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D3196

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

Preview Lab → · Contrast checker → · Palette generator →

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