#2F2897#2F2897

#2F2897 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.173 H 276.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2897
RGBrgb(47, 40, 151)
HSLhsl(244, 58%, 37%)
HSVhsv(244, 74%, 59%)
CMYKcmyk(68.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.81, 38.68, -59.36)
CIE-LCHlch(24.81, 70.85, 303.09°)
OKLaboklab(36.84% 0.0196 -0.1715)
OKLCHoklch(36.84% 0.173 276.5)
XYZxyz(7.5152, 4.3556, 29.7168)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2897 #909728
analogous
#285897 #2F2897 #672897
triadic
#2F2897 #972F28 #28972F
tetradic
#2F2897 #972858 #909728 #289767
square
#2F2897 #972858 #909728 #289767
split-complementary
#2F2897 #976728 #589728
monochromatic
#110E36 #201B67 #2F2897 #3E35C7 #6B64D6

Accessibility & contrast

On white

11.22
#2F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2897
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2897#FFFFFF#000000##FFFFFF
##2F28971.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2897;
/* rgb */ color: rgb(47, 40, 151);
/* oklch */ color: oklch(36.8% 0.173 276.5);
Tailwind
colors: {
  custom: {
    50: '#7763b7',
    500: '#2f2897',
    950: '#000000',
  },
}
SCSS
$custom: #2f2897;
$custom-light: #7763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2897",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 243.784,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3684,
    "c": 0.17263,
    "h": 276.5
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#2F2897
secondary
#B6BC5F
accent
#E146D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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