#2D3F97#2D3F97

#2D3F97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.145 H 270.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2D3F97
RGBrgb(45, 63, 151)
HSLhsl(230, 54%, 38%)
HSVhsv(230, 70%, 59%)
CMYKcmyk(70.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.27, 23.66, -50.44)
CIE-LCHlch(30.27, 55.72, 295.13°)
OKLaboklab(40.79% -0.0001 -0.1453)
OKLCHoklch(40.79% 0.145 270)
XYZxyz(8.4437, 6.3464, 30.0522)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F97 #97852D
analogous
#2D7497 #2D3F97 #502D97
triadic
#2D3F97 #972D3F #3F972D
tetradic
#2D3F97 #972D74 #97852D #2D9750
square
#2D3F97 #972D74 #97852D #2D9750
split-complementary
#2D3F97 #97502D #74972D
monochromatic
#111839 #1F2B68 #2D3F97 #3C53C5 #6B7DD3

Accessibility & contrast

On white

9.25
#2D3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F97
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F97#FFFFFF#000000##FFFFFF
##2D3F971.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d3f97;
/* rgb */ color: rgb(45, 63, 151);
/* oklch */ color: oklch(40.8% 0.145 270.0);
Tailwind
colors: {
  custom: {
    50: '#7473b6',
    500: '#2d3f97',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f97;
$custom-light: #7473b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f97",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 229.811,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40795,
    "c": 0.14529,
    "h": 270
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

primary
#2D3F97
secondary
#BAAC66
accent
#C44ADD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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