#2D317A#2D317A

#2D317A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.122 H 275.9°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2D317A
RGBrgb(45, 49, 122)
HSLhsl(237, 46%, 33%)
HSVhsv(237, 63%, 48%)
CMYKcmyk(63.1%, 59.8%, 0%, 52.2%)
CIE-LABlab(24.19, 22.39, -42.29)
CIE-LCHlch(24.19, 47.85, 297.89°)
OKLaboklab(35.54% 0.0125 -0.1215)
OKLCHoklch(35.54% 0.122 275.9)
XYZxyz(5.6922, 4.1592, 18.9114)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D317A #7A762D
analogous
#2D577A #2D317A #4F2D7A
triadic
#2D317A #7A2D31 #317A2D
tetradic
#2D317A #7A2D57 #7A762D #2D7A4F
square
#2D317A #7A2D57 #7A762D #2D7A4F
split-complementary
#2D317A #7A4F2D #577A2D
monochromatic
#0C0D21 #1D1F4D #2D317A #3D43A7 #5E63C4

Accessibility & contrast

On white

11.46
#2D317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D317A
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D317A#FFFFFF#000000##FFFFFF
##2D317A1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d317a;
/* rgb */ color: rgb(45, 49, 122);
/* oklch */ color: oklch(35.5% 0.122 275.9);
Tailwind
colors: {
  custom: {
    50: '#6f69a1',
    500: '#2d317a',
    950: '#000000',
  },
}
SCSS
$custom: #2d317a;
$custom-light: #6f69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d317a",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 236.883,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35539,
    "c": 0.12214,
    "h": 275.9
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#2D317A
secondary
#AAA659
accent
#CF52D6
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D317A

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

Preview Lab → · Contrast checker → · Palette generator →

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