#2D2F86#2D2F86

#2D2F86 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.142 H 275.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2D2F86
RGBrgb(45, 47, 134)
HSLhsl(239, 50%, 35%)
HSVhsv(239, 66%, 53%)
CMYKcmyk(66.4%, 64.9%, 0%, 47.5%)
CIE-LABlab(24.68, 28.09, -49.06)
CIE-LCHlch(24.68, 56.53, 299.80°)
OKLaboklab(36.21% 0.014 -0.1414)
OKLCHoklch(36.21% 0.142 275.7)
XYZxyz(6.4004, 4.3116, 23.0446)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F86 #86842D
analogous
#2D5B86 #2D2F86 #582D86
triadic
#2D2F86 #862D2F #2F862D
tetradic
#2D2F86 #862D5B #86842D #2D8658
square
#2D2F86 #862D5B #86842D #2D8658
split-complementary
#2D2F86 #86582D #5B862D
monochromatic
#0E0F2A #1E1F58 #2D2F86 #3C3FB4 #6365CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2F86#FFFFFF#000000##FFFFFF
##2D2F861.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)
#003F89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2f86;
/* rgb */ color: rgb(45, 47, 134);
/* oklch */ color: oklch(36.2% 0.142 275.7);
Tailwind
colors: {
  custom: {
    50: '#7167aa',
    500: '#2d2f86',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f86;
$custom-light: #7167aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f86",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 238.652,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.14208,
    "h": 275.7
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#2D2F86
secondary
#B1AF5E
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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