#2D3994#2D3994

#2D3994 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.149 H 271.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2D3994
RGBrgb(45, 57, 148)
HSLhsl(233, 53%, 38%)
HSVhsv(233, 70%, 58%)
CMYKcmyk(69.6%, 61.5%, 0%, 42%)
CIE-LABlab(28.44, 26.57, -51.59)
CIE-LCHlch(28.44, 58.03, 297.25°)
OKLaboklab(39.35% 0.005 -0.1487)
OKLCHoklch(39.35% 0.149 271.9)
XYZxyz(7.8888, 5.6215, 28.6806)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3994 #94882D
analogous
#2D6C94 #2D3994 #552D94
triadic
#2D3994 #942D39 #39942D
tetradic
#2D3994 #942D6C #94882D #2D9455
square
#2D3994 #942D6C #94882D #2D9455
split-complementary
#2D3994 #94552D #6C942D
monochromatic
#101536 #1F2765 #2D3994 #3B4BC3 #6A76D2

Accessibility & contrast

On white

9.89
#2D3994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2D3994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3994
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3994#FFFFFF#000000##FFFFFF
##2D39941.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3994;
/* rgb */ color: rgb(45, 57, 148);
/* oklch */ color: oklch(39.4% 0.149 271.9);
Tailwind
colors: {
  custom: {
    50: '#746fb4',
    500: '#2d3994',
    950: '#000000',
  },
}
SCSS
$custom: #2d3994;
$custom-light: #746fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3994",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 233.01,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39354,
    "c": 0.14882,
    "h": 271.9
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#2D3994
secondary
#B8AF64
accent
#CC4BDD
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3994

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

Preview Lab → · Contrast checker → · Palette generator →

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