#2D3D97#2D3D97

#2D3D97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.148 H 270.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2D3D97
RGBrgb(45, 61, 151)
HSLhsl(231, 54%, 38%)
HSVhsv(231, 70%, 59%)
CMYKcmyk(70.2%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.74, 25.00, -51.31)
CIE-LCHlch(29.74, 57.08, 295.98°)
OKLaboklab(40.4% 0.0016 -0.1479)
OKLCHoklch(40.4% 0.148 270.6)
XYZxyz(8.3349, 6.1289, 30.0159)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D97 #97872D
analogous
#2D7297 #2D3D97 #522D97
triadic
#2D3D97 #972D3D #3D972D
tetradic
#2D3D97 #972D72 #97872D #2D9752
square
#2D3D97 #972D72 #97872D #2D9752
split-complementary
#2D3D97 #97522D #72972D
monochromatic
#111739 #1F2A68 #2D3D97 #3C51C5 #6B7BD3

Accessibility & contrast

On white

9.43
#2D3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2D3D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D97
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D97#FFFFFF#000000##FFFFFF
##2D3D971.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3d97;
/* rgb */ color: rgb(45, 61, 151);
/* oklch */ color: oklch(40.4% 0.148 270.6);
Tailwind
colors: {
  custom: {
    50: '#7472b6',
    500: '#2d3d97',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d97;
$custom-light: #7472b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d97",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 230.943,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40396,
    "c": 0.14789,
    "h": 270.6
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#2D3D97
secondary
#BAAD66
accent
#C74ADD
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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