#2D2874#2D2874

#2D2874 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.126 H 280.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2D2874
RGBrgb(45, 40, 116)
HSLhsl(244, 49%, 31%)
HSVhsv(244, 66%, 45%)
CMYKcmyk(61.2%, 65.5%, 0%, 54.5%)
CIE-LABlab(21.34, 26.29, -43.10)
CIE-LCHlch(21.34, 50.49, 301.38°)
OKLaboklab(33.28% 0.0219 -0.1239)
OKLCHoklch(33.28% 0.126 280)
XYZxyz(4.9924, 3.3361, 16.9005)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2874 #6F7428
analogous
#284974 #2D2874 #532874
triadic
#2D2874 #742D28 #28742D
tetradic
#2D2874 #742849 #6F7428 #287453
square
#2D2874 #742849 #6F7428 #287453
split-complementary
#2D2874 #745328 #497428
monochromatic
#0A0919 #1B1846 #2D2874 #3F38A2 #5A53C4

Accessibility & contrast

On white

12.60
#2D2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2874
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2874#FFFFFF#000000##FFFFFF
##2D28741.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2874;
/* rgb */ color: rgb(45, 40, 116);
/* oklch */ color: oklch(33.3% 0.126 280.0);
Tailwind
colors: {
  custom: {
    50: '#6e629d',
    500: '#2d2874',
    950: '#000000',
  },
}
SCSS
$custom: #2d2874;
$custom-light: #6e629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2874",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 243.947,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33282,
    "c": 0.12586,
    "h": 280
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#2D2874
secondary
#A1A652
accent
#D850CF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2874

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

Preview Lab → · Contrast checker → · Palette generator →

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