#2D3C97#2D3C97

#2D3C97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.149 H 270.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2D3C97
RGBrgb(45, 60, 151)
HSLhsl(232, 54%, 38%)
HSVhsv(232, 70%, 59%)
CMYKcmyk(70.2%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.47, 25.67, -51.74)
CIE-LCHlch(29.47, 57.76, 296.39°)
OKLaboklab(40.2% 0.0025 -0.1491)
OKLCHoklch(40.2% 0.149 270.9)
XYZxyz(8.2821, 6.0232, 29.9983)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C97 #97882D
analogous
#2D7197 #2D3C97 #532D97
triadic
#2D3C97 #972D3C #3C972D
tetradic
#2D3C97 #972D71 #97882D #2D9753
square
#2D3C97 #972D71 #97882D #2D9753
split-complementary
#2D3C97 #97532D #71972D
monochromatic
#111739 #1F2968 #2D3C97 #3C50C5 #6B7AD3

Accessibility & contrast

On white

9.52
#2D3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C97
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C97#FFFFFF#000000##FFFFFF
##2D3C971.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d3c97;
/* rgb */ color: rgb(45, 60, 151);
/* oklch */ color: oklch(40.2% 0.149 270.9);
Tailwind
colors: {
  custom: {
    50: '#7471b6',
    500: '#2d3c97',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c97;
$custom-light: #7471b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c97",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 231.509,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40199,
    "c": 0.14917,
    "h": 270.9
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#2D3C97
secondary
#BAAE66
accent
#C94ADD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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