#2D2F85#2D2F85

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

Color values

HEX#2D2F85
RGBrgb(45, 47, 133)
HSLhsl(239, 49%, 35%)
HSVhsv(239, 66%, 52%)
CMYKcmyk(66.2%, 64.7%, 0%, 47.8%)
CIE-LABlab(24.59, 27.73, -48.57)
CIE-LCHlch(24.59, 55.93, 299.72°)
OKLaboklab(36.12% 0.0141 -0.14)
OKLCHoklch(36.12% 0.141 275.8)
XYZxyz(6.3310, 4.2838, 22.6790)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F85 #85832D
analogous
#2D5B85 #2D2F85 #572D85
triadic
#2D2F85 #852D2F #2F852D
tetradic
#2D2F85 #852D5B #85832D #2D8557
square
#2D2F85 #852D5B #85832D #2D8557
split-complementary
#2D2F85 #85572D #5B852D
monochromatic
#0E0F2A #1E1F57 #2D2F85 #3C3FB3 #6265CA

Accessibility & contrast

On white

11.31
#2D2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F85
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F85#FFFFFF#000000##FFFFFF
##2D2F851.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2f85;
/* rgb */ color: rgb(45, 47, 133);
/* oklch */ color: oklch(36.1% 0.141 275.8);
Tailwind
colors: {
  custom: {
    50: '#7167a9',
    500: '#2d2f85',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f85;
$custom-light: #7167a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f85",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 238.636,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3612,
    "c": 0.14068,
    "h": 275.8
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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