#2D3978#2D3978

#2D3978 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.108 H 272.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2D3978
RGBrgb(45, 57, 120)
HSLhsl(230, 45%, 32%)
HSVhsv(230, 63%, 47%)
CMYKcmyk(62.5%, 52.5%, 0%, 52.9%)
CIE-LABlab(26.27, 16.15, -37.66)
CIE-LCHlch(26.27, 40.98, 293.21°)
OKLaboklab(37.05% 0.0038 -0.1078)
OKLCHoklch(37.05% 0.108 272)
XYZxyz(5.9344, 4.8397, 18.3871)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3978 #786C2D
analogous
#2D5F78 #2D3978 #472D78
triadic
#2D3978 #782D39 #39782D
tetradic
#2D3978 #782D5F #786C2D #2D7847
square
#2D3978 #782D5F #786C2D #2D7847
split-complementary
#2D3978 #78472D #5F782D
monochromatic
#0C0F1F #1C244B #2D3978 #3E4EA5 #5D6DC2

Accessibility & contrast

On white

10.67
#2D3978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3978
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3978#FFFFFF#000000##FFFFFF
##2D39781.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17427A
Deuteranopia (green-blind)
#073B77
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3978;
/* rgb */ color: rgb(45, 57, 120);
/* oklch */ color: oklch(37.1% 0.108 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e6f9f',
    500: '#2d3978',
    950: '#000000',
  },
}
SCSS
$custom: #2d3978;
$custom-light: #6e6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3978",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 120
  },
  "hsl": {
    "h": 230.4,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37052,
    "c": 0.10785,
    "h": 272
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#2D3978
secondary
#A99C58
accent
#C053D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2D3978

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

Preview Lab → · Contrast checker → · Palette generator →

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