#2D3A9E#2D3A9E

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

Color values

HEX#2D3A9E
RGBrgb(45, 58, 158)
HSLhsl(233, 56%, 40%)
HSVhsv(233, 72%, 62%)
CMYKcmyk(71.5%, 63.3%, 0%, 38%)
CIE-LABlab(29.54, 29.59, -55.88)
CIE-LCHlch(29.54, 63.23, 297.90°)
OKLaboklab(40.44% 0.0039 -0.1613)
OKLCHoklch(40.44% 0.161 271.4)
XYZxyz(8.7647, 6.0518, 33.0473)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A9E #9E912D
analogous
#2D739E #2D3A9E #582D9E
triadic
#2D3A9E #9E2D3A #3A9E2D
tetradic
#2D3A9E #9E2D73 #9E912D #2D9E58
square
#2D3A9E #9E2D73 #9E912D #2D9E58
split-complementary
#2D3A9E #9E582D #739E2D
monochromatic
#12173F #1F296E #2D3A9E #404FC9 #6F7BD6

Accessibility & contrast

On white

9.50
#2D3A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D3A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A9E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A9E#FFFFFF#000000##FFFFFF
##2D3A9E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3a9e;
/* rgb */ color: rgb(45, 58, 158);
/* oklch */ color: oklch(40.4% 0.161 271.4);
Tailwind
colors: {
  custom: {
    50: '#7670bc',
    500: '#2d3a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a9e;
$custom-light: #7670bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a9e",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 158
  },
  "hsl": {
    "h": 233.097,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40435,
    "c": 0.16139,
    "h": 271.4
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#2D3A9E
secondary
#BDB469
accent
#CE49DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D3A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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