#2F2197#2F2197

#2F2197 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.180 H 277.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2F2197
RGBrgb(47, 33, 151)
HSLhsl(247, 64%, 36%)
HSVhsv(247, 78%, 59%)
CMYKcmyk(68.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.42, 42.60, -61.65)
CIE-LCHlch(23.42, 74.94, 304.65°)
OKLaboklab(35.86% 0.0238 -0.1781)
OKLCHoklch(35.86% 0.18 277.6)
XYZxyz(7.3003, 3.9258, 29.6452)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2197 #899721
analogous
#214E97 #2F2197 #6A2197
triadic
#2F2197 #972F21 #21972F
tetradic
#2F2197 #97214E #899721 #21976A
square
#2F2197 #97214E #899721 #21976A
split-complementary
#2F2197 #976A21 #4E9721
monochromatic
#100B33 #1F1665 #2F2197 #3F2CC9 #6758DA

Accessibility & contrast

On white

11.76
#2F2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2197
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2197#FFFFFF#000000##FFFFFF
##2F21971.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2197;
/* rgb */ color: rgb(47, 33, 151);
/* oklch */ color: oklch(35.9% 0.180 277.6);
Tailwind
colors: {
  custom: {
    50: '#775fb7',
    500: '#2f2197',
    950: '#000000',
  },
}
SCSS
$custom: #2f2197;
$custom-light: #775fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2197",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 247.119,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.17971,
    "h": 277.6
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#2F2197
secondary
#B2BE55
accent
#E741D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2197

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

Preview Lab → · Contrast checker → · Palette generator →

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