#2F31BB#2F31BB

#2F31BB is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.9% C 0.208 H 272.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2F31BB
RGBrgb(47, 49, 187)
HSLhsl(239, 60%, 46%)
HSVhsv(239, 75%, 73%)
CMYKcmyk(74.9%, 73.8%, 0%, 26.7%)
CIE-LABlab(30.37, 45.53, -71.89)
CIE-LCHlch(30.37, 85.10, 302.35°)
OKLaboklab(41.9% 0.0083 -0.2081)
OKLCHoklch(41.9% 0.208 272.3)
XYZxyz(11.2372, 6.3876, 47.6448)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31BB #BBB92F
analogous
#2F77BB #2F31BB #732FBB
triadic
#2F31BB #BB2F31 #31BB2F
tetradic
#2F31BB #BB2F77 #BBB92F #2FBB73
square
#2F31BB #BB2F77 #BBB92F #2FBB73
split-complementary
#2F31BB #BB732F #77BB2F
monochromatic
#161759 #23248A #2F31BB #5355D4 #8486E0

Accessibility & contrast

On white

9.22
#2F31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31BB
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31BB#FFFFFF#000000##FFFFFF
##2F31BB1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f31bb;
/* rgb */ color: rgb(47, 49, 187);
/* oklch */ color: oklch(41.9% 0.208 272.3);
Tailwind
colors: {
  custom: {
    50: '#7e6bd1',
    500: '#2f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f31bb;
$custom-light: #7e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31bb",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 239.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41901,
    "c": 0.20823,
    "h": 272.3
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#2F31BB
secondary
#C9C87C
accent
#E145E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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