#2D3A97#2D3A97

#2D3A97 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.152 H 271.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2D3A97
RGBrgb(45, 58, 151)
HSLhsl(233, 54%, 38%)
HSVhsv(233, 70%, 59%)
CMYKcmyk(70.2%, 61.6%, 0%, 40.8%)
CIE-LABlab(28.95, 27.01, -52.59)
CIE-LCHlch(28.95, 59.12, 297.18°)
OKLaboklab(39.81% 0.0041 -0.1517)
OKLCHoklch(39.81% 0.152 271.5)
XYZxyz(8.1793, 5.8176, 29.9640)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A97 #978A2D
analogous
#2D6F97 #2D3A97 #552D97
triadic
#2D3A97 #972D3A #3A972D
tetradic
#2D3A97 #972D6F #978A2D #2D9755
square
#2D3A97 #972D6F #978A2D #2D9755
split-complementary
#2D3A97 #97552D #6F972D
monochromatic
#111639 #1F2868 #2D3A97 #3C4DC5 #6B78D3

Accessibility & contrast

On white

9.71
#2D3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A97
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A97#FFFFFF#000000##FFFFFF
##2D3A971.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3a97;
/* rgb */ color: rgb(45, 58, 151);
/* oklch */ color: oklch(39.8% 0.152 271.5);
Tailwind
colors: {
  custom: {
    50: '#7470b6',
    500: '#2d3a97',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a97;
$custom-light: #7470b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a97",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 232.642,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39811,
    "c": 0.15174,
    "h": 271.5
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#2D3A97
secondary
#BAB066
accent
#CB4ADD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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