#2F2797#2F2797

#2F2797 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.174 H 276.7°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2F2797
RGBrgb(47, 39, 151)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 59%)
CMYKcmyk(68.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.61, 39.26, -59.71)
CIE-LCHlch(24.61, 71.46, 303.33°)
OKLaboklab(36.69% 0.0203 -0.1725)
OKLCHoklch(36.69% 0.174 276.7)
XYZxyz(7.4819, 4.2891, 29.7057)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2797 #8F9727
analogous
#275797 #2F2797 #672797
triadic
#2F2797 #972F27 #27972F
tetradic
#2F2797 #972757 #8F9727 #279767
square
#2F2797 #972757 #8F9727 #279767
split-complementary
#2F2797 #976727 #579727
monochromatic
#110E36 #201A66 #2F2797 #3E34C8 #6A62D6

Accessibility & contrast

On white

11.30
#2F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2797
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2797#FFFFFF#000000##FFFFFF
##2F27971.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2797;
/* rgb */ color: rgb(47, 39, 151);
/* oklch */ color: oklch(36.7% 0.174 276.7);
Tailwind
colors: {
  custom: {
    50: '#7763b7',
    500: '#2f2797',
    950: '#000000',
  },
}
SCSS
$custom: #2f2797;
$custom-light: #7763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2797",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 244.286,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36692,
    "c": 0.17369,
    "h": 276.7
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#2F2797
secondary
#B5BC5E
accent
#E246D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2797

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

Preview Lab → · Contrast checker → · Palette generator →

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