#2D3979#2D3979

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

Color values

HEX#2D3979
RGBrgb(45, 57, 121)
HSLhsl(231, 46%, 33%)
HSVhsv(231, 63%, 47%)
CMYKcmyk(62.8%, 52.9%, 0%, 52.5%)
CIE-LABlab(26.34, 16.52, -38.18)
CIE-LCHlch(26.34, 41.60, 293.39°)
OKLaboklab(37.13% 0.0039 -0.1093)
OKLCHoklch(37.13% 0.109 272)
XYZxyz(5.9954, 4.8641, 18.7084)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3979 #796D2D
analogous
#2D5F79 #2D3979 #472D79
triadic
#2D3979 #792D39 #39792D
tetradic
#2D3979 #792D5F #796D2D #2D7947
square
#2D3979 #792D5F #796D2D #2D7947
split-complementary
#2D3979 #79472D #5F792D
monochromatic
#0C0F20 #1C244C #2D3979 #3E4EA6 #5D6DC3

Accessibility & contrast

On white

10.64
#2D3979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3979
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3979#FFFFFF#000000##FFFFFF
##2D39791.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#043B78
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3979;
/* rgb */ color: rgb(45, 57, 121);
/* oklch */ color: oklch(37.1% 0.109 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e6fa0',
    500: '#2d3979',
    950: '#000000',
  },
}
SCSS
$custom: #2d3979;
$custom-light: #6e6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3979",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 230.526,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.10938,
    "h": 272
  },
  "luminance": 0.04865
}

Semantic roles & 50–950 ramp

primary
#2D3979
secondary
#A99D58
accent
#C152D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2D3979

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

Preview Lab → · Contrast checker → · Palette generator →

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