#2D3879#2D3879

#2D3879 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.111 H 272.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2D3879
RGBrgb(45, 56, 121)
HSLhsl(231, 46%, 33%)
HSVhsv(231, 63%, 47%)
CMYKcmyk(62.8%, 53.7%, 0%, 52.5%)
CIE-LABlab(26.06, 17.21, -38.64)
CIE-LCHlch(26.06, 42.30, 294.00°)
OKLaboklab(36.91% 0.005 -0.1107)
OKLCHoklch(36.91% 0.111 272.6)
XYZxyz(5.9464, 4.7662, 18.6921)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3879 #796E2D
analogous
#2D5E79 #2D3879 #482D79
triadic
#2D3879 #792D38 #38792D
tetradic
#2D3879 #792D5E #796E2D #2D7948
square
#2D3879 #792D5E #796E2D #2D7948
split-complementary
#2D3879 #79482D #5E792D
monochromatic
#0C0F20 #1C234C #2D3879 #3E4DA6 #5D6CC3

Accessibility & contrast

On white

10.75
#2D3879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D3879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3879
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3879#FFFFFF#000000##FFFFFF
##2D38791.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13417B
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3879;
/* rgb */ color: rgb(45, 56, 121);
/* oklch */ color: oklch(36.9% 0.111 272.6);
Tailwind
colors: {
  custom: {
    50: '#6e6ea0',
    500: '#2d3879',
    950: '#000000',
  },
}
SCSS
$custom: #2d3879;
$custom-light: #6e6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3879",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 121
  },
  "hsl": {
    "h": 231.316,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36912,
    "c": 0.11078,
    "h": 272.6
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#2D3879
secondary
#A99E58
accent
#C252D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2D3879

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

Preview Lab → · Contrast checker → · Palette generator →

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