#2F31BD#2F31BD

#2F31BD is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.1% C 0.211 H 272.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2F31BD
RGBrgb(47, 49, 189)
HSLhsl(239, 60%, 46%)
HSVhsv(239, 75%, 74%)
CMYKcmyk(75.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(30.58, 46.19, -72.73)
CIE-LCHlch(30.58, 86.16, 302.42°)
OKLaboklab(42.11% 0.008 -0.2105)
OKLCHoklch(42.11% 0.211 272.2)
XYZxyz(11.4528, 6.4739, 48.7802)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31BD #BDBB2F
analogous
#2F78BD #2F31BD #742FBD
triadic
#2F31BD #BD2F31 #31BD2F
tetradic
#2F31BD #BD2F78 #BDBB2F #2FBD74
square
#2F31BD #BD2F78 #BDBB2F #2FBD74
split-complementary
#2F31BD #BD742F #78BD2F
monochromatic
#17185B #23248C #2F31BD #5556D5 #8687E1

Accessibility & contrast

On white

9.15
#2F31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31BD
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31BD#FFFFFF#000000##FFFFFF
##2F31BD1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f31bd;
/* rgb */ color: rgb(47, 49, 189);
/* oklch */ color: oklch(42.1% 0.211 272.2);
Tailwind
colors: {
  custom: {
    50: '#7f6bd2',
    500: '#2f31bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f31bd;
$custom-light: #7f6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31bd",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 239.155,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42111,
    "c": 0.21065,
    "h": 272.2
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#2F31BD
secondary
#CAC97E
accent
#E144E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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