#2F2F96#2F2F96

#2F2F96 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.163 H 275.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F2F96
RGBrgb(47, 47, 150)
HSLhsl(240, 52%, 39%)
HSVhsv(240, 69%, 59%)
CMYKcmyk(68.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.27, 34.07, -56.35)
CIE-LCHlch(26.27, 65.86, 301.16°)
OKLaboklab(37.86% 0.015 -0.1627)
OKLCHoklch(37.86% 0.163 275.3)
XYZxyz(7.6920, 4.8387, 29.3768)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F96 #96962F
analogous
#2F6296 #2F2F96 #622F96
triadic
#2F2F96 #962F2F #2F962F
tetradic
#2F2F96 #962F62 #96962F #2F9662
square
#2F2F96 #962F62 #96962F #2F9662
split-complementary
#2F2F96 #96622F #62962F
monochromatic
#121239 #202067 #2F2F96 #3F3FC3 #6E6ED2

Accessibility & contrast

On white

10.67
#2F2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F96
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F96#FFFFFF#000000##FFFFFF
##2F2F961.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2f96;
/* rgb */ color: rgb(47, 47, 150);
/* oklch */ color: oklch(37.9% 0.163 275.3);
Tailwind
colors: {
  custom: {
    50: '#7668b6',
    500: '#2f2f96',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f96;
$custom-light: #7668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f96",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.16341,
    "h": 275.3
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#2F2F96
secondary
#B9B968
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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