#2F2997#2F2997

#2F2997 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.172 H 276.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F2997
RGBrgb(47, 41, 151)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 73%, 59%)
CMYKcmyk(68.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(25.03, 38.09, -59.01)
CIE-LCHlch(25.03, 70.24, 302.84°)
OKLaboklab(36.99% 0.019 -0.1705)
OKLCHoklch(36.99% 0.172 276.4)
XYZxyz(7.5493, 4.4239, 29.7282)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2997 #919729
analogous
#295A97 #2F2997 #662997
triadic
#2F2997 #972F29 #29972F
tetradic
#2F2997 #97295A #919729 #299766
square
#2F2997 #97295A #919729 #299766
split-complementary
#2F2997 #976629 #5A9729
monochromatic
#110F37 #201C67 #2F2997 #3E36C7 #6B65D5

Accessibility & contrast

On white

11.14
#2F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2997
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2997#FFFFFF#000000##FFFFFF
##2F29971.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2997;
/* rgb */ color: rgb(47, 41, 151);
/* oklch */ color: oklch(37.0% 0.172 276.4);
Tailwind
colors: {
  custom: {
    50: '#7764b7',
    500: '#2f2997',
    950: '#000000',
  },
}
SCSS
$custom: #2f2997;
$custom-light: #7764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2997",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 243.273,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36992,
    "c": 0.17155,
    "h": 276.4
  },
  "luminance": 0.04425
}

Semantic roles & 50–950 ramp

primary
#2F2997
secondary
#B6BB61
accent
#E147D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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