#2D3197#2D3197

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

Color values

HEX#2D3197
RGBrgb(45, 49, 151)
HSLhsl(238, 54%, 38%)
HSVhsv(238, 70%, 59%)
CMYKcmyk(70.2%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.70, 32.90, -56.27)
CIE-LCHlch(26.70, 65.18, 300.31°)
OKLaboklab(38.16% 0.011 -0.1625)
OKLCHoklch(38.16% 0.163 273.9)
XYZxyz(7.7646, 4.9882, 29.8258)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3197 #97932D
analogous
#2D6697 #2D3197 #5E2D97
triadic
#2D3197 #972D31 #31972D
tetradic
#2D3197 #972D66 #97932D #2D975E
square
#2D3197 #972D66 #97932D #2D975E
split-complementary
#2D3197 #975E2D #66972D
monochromatic
#111239 #1F2268 #2D3197 #3C41C5 #6B6FD3

Accessibility & contrast

On white

10.51
#2D3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3197
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3197#FFFFFF#000000##FFFFFF
##2D31971.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3197;
/* rgb */ color: rgb(45, 49, 151);
/* oklch */ color: oklch(38.2% 0.163 273.9);
Tailwind
colors: {
  custom: {
    50: '#7569b7',
    500: '#2d3197',
    950: '#000000',
  },
}
SCSS
$custom: #2d3197;
$custom-light: #7569b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3197",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 237.736,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38162,
    "c": 0.16289,
    "h": 273.9
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#2D3197
secondary
#BAB766
accent
#D84ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D3197

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

Preview Lab → · Contrast checker → · Palette generator →

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