#2F2F87#2F2F87

#2F2F87 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.143 H 276.6°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2F87
RGBrgb(47, 47, 135)
HSLhsl(240, 48%, 36%)
HSVhsv(240, 65%, 53%)
CMYKcmyk(65.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.91, 28.77, -49.30)
CIE-LCHlch(24.91, 57.08, 300.27°)
OKLaboklab(36.45% 0.0165 -0.142)
OKLCHoklch(36.45% 0.143 276.6)
XYZxyz(6.5606, 4.3861, 23.4178)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F87 #87872F
analogous
#2F5B87 #2F2F87 #5B2F87
triadic
#2F2F87 #872F2F #2F872F
tetradic
#2F2F87 #872F5B #87872F #2F875B
square
#2F2F87 #872F5B #87872F #2F875B
split-complementary
#2F2F87 #875B2F #5B872F
monochromatic
#0F0F2C #1F1F5A #2F2F87 #3F3FB4 #6666CA

Accessibility & contrast

On white

11.19
#2F2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F87
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F87#FFFFFF#000000##FFFFFF
##2F2F871.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2f87;
/* rgb */ color: rgb(47, 47, 135);
/* oklch */ color: oklch(36.4% 0.143 276.6);
Tailwind
colors: {
  custom: {
    50: '#7368ab',
    500: '#2f2f87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f87;
$custom-light: #7368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f87",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36447,
    "c": 0.14299,
    "h": 276.6
  },
  "luminance": 0.04387
}

Semantic roles & 50–950 ramp

primary
#2F2F87
secondary
#B1B161
accent
#D850D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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