#2F2196#2F2196

#2F2196 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.178 H 277.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2196
RGBrgb(47, 33, 150)
HSLhsl(247, 64%, 36%)
HSVhsv(247, 78%, 59%)
CMYKcmyk(68.7%, 78%, 0%, 41.2%)
CIE-LABlab(23.32, 42.29, -61.22)
CIE-LCHlch(23.32, 74.40, 304.63°)
OKLaboklab(35.75% 0.024 -0.1769)
OKLCHoklch(35.75% 0.178 277.7)
XYZxyz(7.2194, 3.8934, 29.2193)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2196 #889621
analogous
#214E96 #2F2196 #692196
triadic
#2F2196 #962F21 #21962F
tetradic
#2F2196 #96214E #889621 #219669
square
#2F2196 #96214E #889621 #219669
split-complementary
#2F2196 #966921 #4E9621
monochromatic
#100B32 #1F1664 #2F2196 #3F2CC8 #6757DA

Accessibility & contrast

On white

11.81
#2F2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2196
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2196#FFFFFF#000000##FFFFFF
##2F21961.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2196;
/* rgb */ color: rgb(47, 33, 150);
/* oklch */ color: oklch(35.8% 0.178 277.7);
Tailwind
colors: {
  custom: {
    50: '#775fb6',
    500: '#2f2196',
    950: '#000000',
  },
}
SCSS
$custom: #2f2196;
$custom-light: #775fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2196",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 247.179,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.17849,
    "h": 277.7
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2196

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

Preview Lab → · Contrast checker → · Palette generator →

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