#2F2987#2F2987

#2F2987 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.151 H 278.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2987
RGBrgb(47, 41, 135)
HSLhsl(244, 53%, 35%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(65.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.47, 32.62, -51.65)
CIE-LCHlch(23.47, 61.09, 302.28°)
OKLaboklab(35.4% 0.0216 -0.149)
OKLCHoklch(35.4% 0.151 278.3)
XYZxyz(6.3370, 3.9390, 23.3433)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2987 #818729
analogous
#295287 #2F2987 #5E2987
triadic
#2F2987 #872F29 #29872F
tetradic
#2F2987 #872952 #818729 #29875E
square
#2F2987 #872952 #818729 #29875E
split-complementary
#2F2987 #875E29 #528729
monochromatic
#0E0C29 #1F1B58 #2F2987 #3F37B6 #645DCE

Accessibility & contrast

On white

11.75
#2F2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2987
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2987#FFFFFF#000000##FFFFFF
##2F29871.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2987;
/* rgb */ color: rgb(47, 41, 135);
/* oklch */ color: oklch(35.4% 0.151 278.3);
Tailwind
colors: {
  custom: {
    50: '#7363ab',
    500: '#2f2987',
    950: '#000000',
  },
}
SCSS
$custom: #2f2987;
$custom-light: #7363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2987",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 243.83,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.354,
    "c": 0.15052,
    "h": 278.3
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#2F2987
secondary
#ADB359
accent
#DD4BD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2987

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

Preview Lab → · Contrast checker → · Palette generator →

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