#2F2891#2F2891

#2F2891 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.165 H 277.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2F2891
RGBrgb(47, 40, 145)
HSLhsl(244, 57%, 36%)
HSVhsv(244, 72%, 57%)
CMYKcmyk(67.6%, 72.4%, 0%, 43.1%)
CIE-LABlab(24.21, 36.66, -56.65)
CIE-LCHlch(24.21, 67.48, 302.90°)
OKLaboklab(36.23% 0.0208 -0.1636)
OKLCHoklch(36.23% 0.165 277.2)
XYZxyz(7.0403, 4.1657, 27.2156)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2891 #8A9128
analogous
#285691 #2F2891 #642891
triadic
#2F2891 #912F28 #28912F
tetradic
#2F2891 #912856 #8A9128 #289164
square
#2F2891 #912856 #8A9128 #289164
split-complementary
#2F2891 #916428 #569128
monochromatic
#100E31 #1F1B61 #2F2891 #3F35C1 #6860D3

Accessibility & contrast

On white

11.46
#2F2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2891
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2891#FFFFFF#000000##FFFFFF
##2F28911.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2891;
/* rgb */ color: rgb(47, 40, 145);
/* oklch */ color: oklch(36.2% 0.165 277.2);
Tailwind
colors: {
  custom: {
    50: '#7563b2',
    500: '#2f2891',
    950: '#000000',
  },
}
SCSS
$custom: #2f2891;
$custom-light: #7563b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2891",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 244,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36229,
    "c": 0.1649,
    "h": 277.2
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#2F2891
secondary
#B3B95C
accent
#E048D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2891

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

Preview Lab → · Contrast checker → · Palette generator →

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