#2F2C87#2F2C87

#2F2C87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.147 H 277.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#2F2C87
RGBrgb(47, 44, 135)
HSLhsl(242, 51%, 35%)
HSVhsv(242, 67%, 53%)
CMYKcmyk(65.2%, 67.4%, 0%, 47.1%)
CIE-LABlab(24.18, 30.72, -50.49)
CIE-LCHlch(24.18, 59.10, 301.31°)
OKLaboklab(35.91% 0.0191 -0.1456)
OKLCHoklch(35.91% 0.147 277.5)
XYZxyz(6.4447, 4.1545, 23.3792)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C87 #84872C
analogous
#2C5687 #2F2C87 #5C2C87
triadic
#2F2C87 #872F2C #2C872F
tetradic
#2F2C87 #872C56 #84872C #2C875C
square
#2F2C87 #872C56 #84872C #2C875C
split-complementary
#2F2C87 #875C2C #56872C
monochromatic
#0F0E2B #1F1D59 #2F2C87 #3F3BB5 #6562CC

Accessibility & contrast

On white

11.47
#2F2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C87
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C87#FFFFFF#000000##FFFFFF
##2F2C871.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2c87;
/* rgb */ color: rgb(47, 44, 135);
/* oklch */ color: oklch(35.9% 0.147 277.5);
Tailwind
colors: {
  custom: {
    50: '#7365ab',
    500: '#2f2c87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c87;
$custom-light: #7365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c87",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 241.978,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35912,
    "c": 0.14681,
    "h": 277.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#2F2C87
secondary
#AFB25D
accent
#DA4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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