#2D3D78#2D3D78

#2D3D78 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.102 H 269.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2D3D78
RGBrgb(45, 61, 120)
HSLhsl(227, 45%, 32%)
HSVhsv(227, 63%, 47%)
CMYKcmyk(62.5%, 49.2%, 0%, 52.9%)
CIE-LABlab(27.44, 13.39, -35.79)
CIE-LCHlch(27.44, 38.21, 290.51°)
OKLaboklab(37.94% -0.0007 -0.1022)
OKLCHoklch(37.94% 0.102 269.6)
XYZxyz(6.1400, 5.2509, 18.4556)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D78 #78682D
analogous
#2D6378 #2D3D78 #422D78
triadic
#2D3D78 #782D3D #3D782D
tetradic
#2D3D78 #782D63 #78682D #2D7842
square
#2D3D78 #782D63 #78682D #2D7842
split-complementary
#2D3D78 #78422D #63782D
monochromatic
#0C101F #1C264B #2D3D78 #3E54A5 #5D73C2

Accessibility & contrast

On white

10.24
#2D3D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D3D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D78
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D78#FFFFFF#000000##FFFFFF
##2D3D781.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20447A
Deuteranopia (green-blind)
#143E77
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3d78;
/* rgb */ color: rgb(45, 61, 120);
/* oklch */ color: oklch(37.9% 0.102 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d729f',
    500: '#2d3d78',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d78;
$custom-light: #6d729f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d78",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 120
  },
  "hsl": {
    "h": 227.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37936,
    "c": 0.10223,
    "h": 269.6
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#2D3D78
secondary
#A99758
accent
#B953D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2D3D78

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

Preview Lab → · Contrast checker → · Palette generator →

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