#2D3379#2D3379

#2D3379 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.9% C 0.118 H 275.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2D3379
RGBrgb(45, 51, 121)
HSLhsl(235, 46%, 33%)
HSVhsv(235, 63%, 47%)
CMYKcmyk(62.8%, 57.9%, 0%, 52.5%)
CIE-LABlab(24.66, 20.65, -40.90)
CIE-LCHlch(24.66, 45.82, 296.79°)
OKLaboklab(35.86% 0.0104 -0.1174)
OKLCHoklch(35.86% 0.118 275.1)
XYZxyz(5.7161, 4.3056, 18.6153)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3379 #79732D
analogous
#2D5979 #2D3379 #4D2D79
triadic
#2D3379 #792D33 #33792D
tetradic
#2D3379 #792D59 #79732D #2D794D
square
#2D3379 #792D59 #79732D #2D794D
split-complementary
#2D3379 #794D2D #59792D
monochromatic
#0C0D20 #1C204C #2D3379 #3E46A6 #5D65C3

Accessibility & contrast

On white

11.28
#2D3379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D3379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3379
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3379#FFFFFF#000000##FFFFFF
##2D33791.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004450
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d3379;
/* rgb */ color: rgb(45, 51, 121);
/* oklch */ color: oklch(35.9% 0.118 275.1);
Tailwind
colors: {
  custom: {
    50: '#6e6aa0',
    500: '#2d3379',
    950: '#000000',
  },
}
SCSS
$custom: #2d3379;
$custom-light: #6e6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3379",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 235.263,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35861,
    "c": 0.11785,
    "h": 275.1
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#2D3379
secondary
#A9A358
accent
#CB52D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2D3379

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

Preview Lab → · Contrast checker → · Palette generator →

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