#2D2F84#2D2F84

#2D2F84 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.139 H 275.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2D2F84
RGBrgb(45, 47, 132)
HSLhsl(239, 49%, 35%)
HSVhsv(239, 66%, 52%)
CMYKcmyk(65.9%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.50, 27.37, -48.09)
CIE-LCHlch(24.50, 55.33, 299.65°)
OKLaboklab(36.03% 0.0142 -0.1385)
OKLCHoklch(36.03% 0.139 275.8)
XYZxyz(6.2622, 4.2563, 22.3169)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F84 #84822D
analogous
#2D5A84 #2D2F84 #572D84
triadic
#2D2F84 #842D2F #2F842D
tetradic
#2D2F84 #842D5A #84822D #2D8457
square
#2D2F84 #842D5A #84822D #2D8457
split-complementary
#2D2F84 #84572D #5A842D
monochromatic
#0E0E29 #1D1F56 #2D2F84 #3D3FB2 #6264C9

Accessibility & contrast

On white

11.34
#2D2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F84
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F84#FFFFFF#000000##FFFFFF
##2D2F841.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2f84;
/* rgb */ color: rgb(45, 47, 132);
/* oklch */ color: oklch(36.0% 0.139 275.8);
Tailwind
colors: {
  custom: {
    50: '#7167a9',
    500: '#2d2f84',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f84;
$custom-light: #7167a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f84",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 238.621,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36029,
    "c": 0.13927,
    "h": 275.8
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#2D2F84
secondary
#B0AE5D
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2D2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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