#2D3780#2D3780

#2D3780 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.123 H 273.1°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2D3780
RGBrgb(45, 55, 128)
HSLhsl(233, 48%, 34%)
HSVhsv(233, 65%, 50%)
CMYKcmyk(64.8%, 57%, 0%, 49.8%)
CIE-LABlab(26.30, 20.50, -42.66)
CIE-LCHlch(26.30, 47.33, 295.66°)
OKLaboklab(37.26% 0.0065 -0.1225)
OKLCHoklch(37.26% 0.123 273.1)
XYZxyz(6.3434, 4.8482, 21.0194)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3780 #80762D
analogous
#2D6180 #2D3780 #4D2D80
triadic
#2D3780 #802D37 #37802D
tetradic
#2D3780 #802D61 #80762D #2D804D
square
#2D3780 #802D61 #80762D #2D804D
split-complementary
#2D3780 #804D2D #61802D
monochromatic
#0D1025 #1D2453 #2D3780 #3D4AAD #606DC7

Accessibility & contrast

On white

10.66
#2D3780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D3780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3780
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3780#FFFFFF#000000##FFFFFF
##2D37801.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3780;
/* rgb */ color: rgb(45, 55, 128);
/* oklch */ color: oklch(37.3% 0.123 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f6da5',
    500: '#2d3780',
    950: '#000000',
  },
}
SCSS
$custom: #2d3780;
$custom-light: #6f6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3780",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 128
  },
  "hsl": {
    "h": 232.771,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37258,
    "c": 0.12269,
    "h": 273.1
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#2D3780
secondary
#AEA45B
accent
#C750D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3780

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

Preview Lab → · Contrast checker → · Palette generator →

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