#2F2096#2F2096

#2F2096 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.179 H 277.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2F2096
RGBrgb(47, 32, 150)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(23.13, 42.81, -61.52)
CIE-LCHlch(23.13, 74.95, 304.83°)
OKLaboklab(35.62% 0.0246 -0.1777)
OKLCHoklch(35.62% 0.179 277.9)
XYZxyz(7.1920, 3.8387, 29.2102)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2096 #879620
analogous
#204C96 #2F2096 #6A2096
triadic
#2F2096 #962F20 #20962F
tetradic
#2F2096 #96204C #879620 #20966A
square
#2F2096 #96204C #879620 #20966A
split-complementary
#2F2096 #966A20 #4C9620
monochromatic
#0F0A31 #1F1564 #2F2096 #3F2BC8 #6656DB

Accessibility & contrast

On white

11.88
#2F2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2096
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2096#FFFFFF#000000##FFFFFF
##2F20961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2096;
/* rgb */ color: rgb(47, 32, 150);
/* oklch */ color: oklch(35.6% 0.179 277.9);
Tailwind
colors: {
  custom: {
    50: '#775fb6',
    500: '#2f2096',
    950: '#000000',
  },
}
SCSS
$custom: #2f2096;
$custom-light: #775fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2096",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 247.627,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3562,
    "c": 0.17943,
    "h": 277.9
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#2F2096
secondary
#B1BE53
accent
#E840D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2096

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

Preview Lab → · Contrast checker → · Palette generator →

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