#2D3F85#2D3F85

#2D3F85 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.119 H 269.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2D3F85
RGBrgb(45, 63, 133)
HSLhsl(228, 49%, 35%)
HSVhsv(228, 66%, 52%)
CMYKcmyk(66.2%, 52.6%, 0%, 47.8%)
CIE-LABlab(28.92, 16.89, -41.55)
CIE-LCHlch(28.92, 44.85, 292.12°)
OKLaboklab(39.35% -0.0012 -0.1191)
OKLCHoklch(39.35% 0.119 269.4)
XYZxyz(7.0919, 5.8057, 22.9326)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F85 #85732D
analogous
#2D6B85 #2D3F85 #472D85
triadic
#2D3F85 #852D3F #3F852D
tetradic
#2D3F85 #852D6B #85732D #2D8547
square
#2D3F85 #852D6B #85732D #2D8547
split-complementary
#2D3F85 #85472D #6B852D
monochromatic
#0E142A #1E2957 #2D3F85 #3C55B3 #6278CA

Accessibility & contrast

On white

9.72
#2D3F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D3F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F85
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F85#FFFFFF#000000##FFFFFF
##2D3F851.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164888
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3f85;
/* rgb */ color: rgb(45, 63, 133);
/* oklch */ color: oklch(39.3% 0.119 269.4);
Tailwind
colors: {
  custom: {
    50: '#7073a9',
    500: '#2d3f85',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f85;
$custom-light: #7073a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f85",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 133
  },
  "hsl": {
    "h": 227.727,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39348,
    "c": 0.11915,
    "h": 269.4
  },
  "luminance": 0.05806
}

Semantic roles & 50–950 ramp

primary
#2D3F85
secondary
#B09F5D
accent
#BD4FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D3F85

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

Preview Lab → · Contrast checker → · Palette generator →

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