#2D3F82#2D3F82

#2D3F82 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.115 H 269.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2D3F82
RGBrgb(45, 63, 130)
HSLhsl(227, 49%, 34%)
HSVhsv(227, 65%, 51%)
CMYKcmyk(65.4%, 51.5%, 0%, 49%)
CIE-LABlab(28.71, 15.76, -40.03)
CIE-LCHlch(28.71, 43.02, 291.49°)
OKLaboklab(39.12% -0.0016 -0.1146)
OKLCHoklch(39.12% 0.115 269.2)
XYZxyz(6.8876, 5.7240, 21.8566)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F82 #82702D
analogous
#2D6A82 #2D3F82 #462D82
triadic
#2D3F82 #822D3F #3F822D
tetradic
#2D3F82 #822D6A #82702D #2D8246
square
#2D3F82 #822D6A #82702D #2D8246
split-complementary
#2D3F82 #82462D #6A822D
monochromatic
#0E1327 #1D2955 #2D3F82 #3D55AF #6177C8

Accessibility & contrast

On white

9.79
#2D3F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D3F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F82
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F82#FFFFFF#000000##FFFFFF
##2D3F821.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4884
Deuteranopia (green-blind)
#054081
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3f82;
/* rgb */ color: rgb(45, 63, 130);
/* oklch */ color: oklch(39.1% 0.115 269.2);
Tailwind
colors: {
  custom: {
    50: '#6f73a7',
    500: '#2d3f82',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f82;
$custom-light: #6f73a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f82",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 130
  },
  "hsl": {
    "h": 227.294,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3912,
    "c": 0.11466,
    "h": 269.2
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#2D3F82
secondary
#AF9D5C
accent
#BB50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D3F82

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

Preview Lab → · Contrast checker → · Palette generator →

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