#2D3878#2D3878

#2D3878 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.109 H 272.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2D3878
RGBrgb(45, 56, 120)
HSLhsl(231, 45%, 32%)
HSVhsv(231, 63%, 47%)
CMYKcmyk(62.5%, 53.3%, 0%, 52.9%)
CIE-LABlab(25.99, 16.84, -38.12)
CIE-LCHlch(25.99, 41.68, 293.83°)
OKLaboklab(36.84% 0.0049 -0.1091)
OKLCHoklch(36.84% 0.109 272.6)
XYZxyz(5.8854, 4.7418, 18.3708)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3878 #786D2D
analogous
#2D5E78 #2D3878 #482D78
triadic
#2D3878 #782D38 #38782D
tetradic
#2D3878 #782D5E #786D2D #2D7848
square
#2D3878 #782D5E #786D2D #2D7848
split-complementary
#2D3878 #78482D #5E782D
monochromatic
#0C0E1F #1C234B #2D3878 #3E4DA5 #5D6CC2

Accessibility & contrast

On white

10.78
#2D3878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3878
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3878#FFFFFF#000000##FFFFFF
##2D38781.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417A
Deuteranopia (green-blind)
#033A77
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3878;
/* rgb */ color: rgb(45, 56, 120);
/* oklch */ color: oklch(36.8% 0.109 272.6);
Tailwind
colors: {
  custom: {
    50: '#6e6e9f',
    500: '#2d3878',
    950: '#000000',
  },
}
SCSS
$custom: #2d3878;
$custom-light: #6e6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3878",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 120
  },
  "hsl": {
    "h": 231.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36835,
    "c": 0.10926,
    "h": 272.6
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#2D3878
secondary
#A99D58
accent
#C253D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2D3878

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

Preview Lab → · Contrast checker → · Palette generator →

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