#2D3A9F#2D3A9F

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

Color values

HEX#2D3A9F
RGBrgb(45, 58, 159)
HSLhsl(233, 56%, 40%)
HSVhsv(233, 72%, 62%)
CMYKcmyk(71.7%, 63.5%, 0%, 37.6%)
CIE-LABlab(29.63, 29.96, -56.35)
CIE-LCHlch(29.63, 63.82, 297.99°)
OKLaboklab(40.53% 0.0039 -0.1627)
OKLCHoklch(40.53% 0.163 271.4)
XYZxyz(8.8511, 6.0863, 33.5025)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A9F #9F922D
analogous
#2D739F #2D3A9F #592D9F
triadic
#2D3A9F #9F2D3A #3A9F2D
tetradic
#2D3A9F #9F2D73 #9F922D #2D9F59
square
#2D3A9F #9F2D73 #9F922D #2D9F59
split-complementary
#2D3A9F #9F592D #739F2D
monochromatic
#121740 #20296F #2D3A9F #4050C9 #707CD6

Accessibility & contrast

On white

9.47
#2D3A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D3A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A9F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A9F#FFFFFF#000000##FFFFFF
##2D3A9F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d3a9f;
/* rgb */ color: rgb(45, 58, 159);
/* oklch */ color: oklch(40.5% 0.163 271.4);
Tailwind
colors: {
  custom: {
    50: '#7670bc',
    500: '#2d3a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a9f;
$custom-light: #7670bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a9f",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 233.158,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.40526,
    "c": 0.16275,
    "h": 271.4
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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