#2D3F9D#2D3F9D

#2D3F9D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.154 H 270.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2D3F9D
RGBrgb(45, 63, 157)
HSLhsl(230, 55%, 40%)
HSVhsv(230, 71%, 62%)
CMYKcmyk(71.3%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.75, 25.91, -53.31)
CIE-LCHlch(30.75, 59.27, 295.92°)
OKLaboklab(41.3% 0.0001 -0.1537)
OKLCHoklch(41.3% 0.154 270)
XYZxyz(8.9434, 6.5463, 32.6840)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F9D #9D8B2D
analogous
#2D779D #2D3F9D #532D9D
triadic
#2D3F9D #9D2D3F #3F9D2D
tetradic
#2D3F9D #9D2D77 #9D8B2D #2D9D53
square
#2D3F9D #9D2D77 #9D8B2D #2D9D53
split-complementary
#2D3F9D #9D532D #779D2D
monochromatic
#12193E #1F2C6D #2D3F9D #3F55C8 #6F7FD6

Accessibility & contrast

On white

9.09
#2D3F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D3F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F9D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F9D#FFFFFF#000000##FFFFFF
##2D3F9D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d3f9d;
/* rgb */ color: rgb(45, 63, 157);
/* oklch */ color: oklch(41.3% 0.154 270.0);
Tailwind
colors: {
  custom: {
    50: '#7573bb',
    500: '#2d3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f9d;
$custom-light: #7573bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f9d",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 230.357,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41304,
    "c": 0.15372,
    "h": 270
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#2D3F9D
secondary
#BDAF69
accent
#C749DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2D3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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