#2D3B87#2D3B87

#2D3B87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.128 H 271.3°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2D3B87
RGBrgb(45, 59, 135)
HSLhsl(231, 50%, 35%)
HSVhsv(231, 67%, 53%)
CMYKcmyk(66.7%, 56.3%, 0%, 47.1%)
CIE-LABlab(27.94, 20.37, -44.38)
CIE-LCHlch(27.94, 48.83, 294.66°)
OKLaboklab(38.66% 0.0029 -0.1275)
OKLCHoklch(38.66% 0.128 271.3)
XYZxyz(7.0179, 5.4345, 23.5961)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3B87 #87792D
analogous
#2D6887 #2D3B87 #4C2D87
triadic
#2D3B87 #872D3B #3B872D
tetradic
#2D3B87 #872D68 #87792D #2D874C
square
#2D3B87 #872D68 #87792D #2D874C
split-complementary
#2D3B87 #874C2D #68872D
monochromatic
#0E132B #1E2759 #2D3B87 #3C4FB5 #6373CB

Accessibility & contrast

On white

10.06
#2D3B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D3B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3B87
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3B87#FFFFFF#000000##FFFFFF
##2D3B871.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3b87;
/* rgb */ color: rgb(45, 59, 135);
/* oklch */ color: oklch(38.7% 0.128 271.3);
Tailwind
colors: {
  custom: {
    50: '#7170ab',
    500: '#2d3b87',
    950: '#000000',
  },
}
SCSS
$custom: #2d3b87;
$custom-light: #7170ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3b87",
  "rgb": {
    "r": 45,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 230.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38657,
    "c": 0.12754,
    "h": 271.3
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#2D3B87
secondary
#B2A55E
accent
#C44EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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