#2F2E87#2F2E87

#2F2E87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.144 H 276.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2F2E87
RGBrgb(47, 46, 135)
HSLhsl(241, 49%, 35%)
HSVhsv(241, 66%, 53%)
CMYKcmyk(65.2%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.66, 29.42, -49.70)
CIE-LCHlch(24.66, 57.76, 300.63°)
OKLaboklab(36.27% 0.0174 -0.1432)
OKLCHoklch(36.27% 0.144 276.9)
XYZxyz(6.5210, 4.3071, 23.4047)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E87 #86872E
analogous
#2E5987 #2F2E87 #5B2E87
triadic
#2F2E87 #872F2E #2E872F
tetradic
#2F2E87 #872E59 #86872E #2E875B
square
#2F2E87 #872E59 #86872E #2E875B
split-complementary
#2F2E87 #875B2E #59872E
monochromatic
#0F0F2C #1F1E59 #2F2E87 #3F3EB5 #6665CA

Accessibility & contrast

On white

11.28
#2F2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E87
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E87#FFFFFF#000000##FFFFFF
##2F2E871.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2e87;
/* rgb */ color: rgb(47, 46, 135);
/* oklch */ color: oklch(36.3% 0.144 276.9);
Tailwind
colors: {
  custom: {
    50: '#7367ab',
    500: '#2f2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e87;
$custom-light: #7367ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e87",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 240.674,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36266,
    "c": 0.14427,
    "h": 276.9
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#2F2E87
secondary
#B0B160
accent
#D94FD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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