#2F2F97#2F2F97

#2F2F97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.165 H 275.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2F97
RGBrgb(47, 47, 151)
HSLhsl(240, 53%, 39%)
HSVhsv(240, 69%, 59%)
CMYKcmyk(68.9%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.36, 34.43, -56.81)
CIE-LCHlch(26.36, 66.43, 301.21°)
OKLaboklab(37.95% 0.0149 -0.1641)
OKLCHoklch(37.95% 0.165 275.2)
XYZxyz(7.7729, 4.8710, 29.8027)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F97 #97972F
analogous
#2F6397 #2F2F97 #632F97
triadic
#2F2F97 #972F2F #2F972F
tetradic
#2F2F97 #972F63 #97972F #2F9763
square
#2F2F97 #972F63 #97972F #2F9763
split-complementary
#2F2F97 #97632F #63972F
monochromatic
#12123A #202068 #2F2F97 #4040C3 #6E6ED2

Accessibility & contrast

On white

10.64
#2F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2F97
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F97#FFFFFF#000000##FFFFFF
##2F2F971.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2f97;
/* rgb */ color: rgb(47, 47, 151);
/* oklch */ color: oklch(38.0% 0.165 275.2);
Tailwind
colors: {
  custom: {
    50: '#7668b7',
    500: '#2f2f97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f97;
$custom-light: #7668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f97",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37953,
    "c": 0.16474,
    "h": 275.2
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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