#2F2198#2F2198

#2F2198 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.181 H 277.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2F2198
RGBrgb(47, 33, 152)
HSLhsl(247, 64%, 36%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.53, 42.92, -62.09)
CIE-LCHlch(23.53, 75.48, 304.66°)
OKLaboklab(35.97% 0.0235 -0.1794)
OKLCHoklch(35.97% 0.181 277.5)
XYZxyz(7.3818, 3.9584, 30.0747)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2198 #8A9821
analogous
#214F98 #2F2198 #6B2198
triadic
#2F2198 #982F21 #21982F
tetradic
#2F2198 #98214F #8A9821 #21986B
square
#2F2198 #98214F #8A9821 #21986B
split-complementary
#2F2198 #986B21 #4F9821
monochromatic
#100B33 #1F1666 #2F2198 #3F2CCA #6859DB

Accessibility & contrast

On white

11.72
#2F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2198
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2198#FFFFFF#000000##FFFFFF
##2F21981.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2198;
/* rgb */ color: rgb(47, 33, 152);
/* oklch */ color: oklch(36.0% 0.181 277.5);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#2f2198',
    950: '#000000',
  },
}
SCSS
$custom: #2f2198;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2198",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 247.059,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.18094,
    "h": 277.5
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#2F2198
secondary
#B3BF56
accent
#E740D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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