#2F2D87#2F2D87

#2F2D87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.146 H 277.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2F2D87
RGBrgb(47, 45, 135)
HSLhsl(241, 50%, 35%)
HSVhsv(241, 67%, 53%)
CMYKcmyk(65.2%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.42, 30.07, -50.10)
CIE-LCHlch(24.42, 58.43, 300.97°)
OKLaboklab(36.09% 0.0183 -0.1444)
OKLCHoklch(36.09% 0.146 277.2)
XYZxyz(6.4824, 4.2299, 23.3918)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D87 #85872D
analogous
#2D5887 #2F2D87 #5C2D87
triadic
#2F2D87 #872F2D #2D872F
tetradic
#2F2D87 #872D58 #85872D #2D875C
square
#2F2D87 #872D58 #85872D #2D875C
split-complementary
#2F2D87 #875C2D #58872D
monochromatic
#0F0E2B #1F1E59 #2F2D87 #3F3CB5 #6663CB

Accessibility & contrast

On white

11.38
#2F2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2D87
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D87#FFFFFF#000000##FFFFFF
##2F2D871.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2d87;
/* rgb */ color: rgb(47, 45, 135);
/* oklch */ color: oklch(36.1% 0.146 277.2);
Tailwind
colors: {
  custom: {
    50: '#7366ab',
    500: '#2f2d87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d87;
$custom-light: #7366ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d87",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 241.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36088,
    "c": 0.14555,
    "h": 277.2
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#2F2D87
secondary
#B0B25E
accent
#DA4ED6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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