#2F2887#2F2887

#2F2887 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.152 H 278.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2F2887
RGBrgb(47, 40, 135)
HSLhsl(244, 54%, 34%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(65.2%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.24, 33.25, -52.03)
CIE-LCHlch(23.24, 61.74, 302.58°)
OKLaboklab(35.24% 0.0224 -0.1501)
OKLCHoklch(35.24% 0.152 278.5)
XYZxyz(6.3029, 3.8707, 23.3319)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2887 #808728
analogous
#285187 #2F2887 #5F2887
triadic
#2F2887 #872F28 #28872F
tetradic
#2F2887 #872851 #808728 #28875F
square
#2F2887 #872851 #808728 #28875F
split-complementary
#2F2887 #875F28 #518728
monochromatic
#0E0C29 #1F1A58 #2F2887 #3F36B6 #635BCE

Accessibility & contrast

On white

11.84
#2F2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2887
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2887#FFFFFF#000000##FFFFFF
##2F28871.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2887;
/* rgb */ color: rgb(47, 40, 135);
/* oklch */ color: oklch(35.2% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#7363ab',
    500: '#2f2887',
    950: '#000000',
  },
}
SCSS
$custom: #2f2887;
$custom-light: #7363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2887",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 244.421,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35235,
    "c": 0.15172,
    "h": 278.5
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2F2887
secondary
#ADB457
accent
#DE4AD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2887

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

Preview Lab → · Contrast checker → · Palette generator →

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