#2F31BA#2F31BA

#2F31BA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.207 H 272.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2F31BA
RGBrgb(47, 49, 186)
HSLhsl(239, 60%, 46%)
HSVhsv(239, 75%, 73%)
CMYKcmyk(74.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(30.27, 45.20, -71.47)
CIE-LCHlch(30.27, 84.56, 302.31°)
OKLaboklab(41.8% 0.0085 -0.2068)
OKLCHoklch(41.8% 0.207 272.3)
XYZxyz(11.1305, 6.3450, 47.0830)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31BA #BAB82F
analogous
#2F76BA #2F31BA #732FBA
triadic
#2F31BA #BA2F31 #31BA2F
tetradic
#2F31BA #BA2F76 #BAB82F #2FBA73
square
#2F31BA #BA2F76 #BAB82F #2FBA73
split-complementary
#2F31BA #BA732F #76BA2F
monochromatic
#161758 #232489 #2F31BA #5355D3 #8485E0

Accessibility & contrast

On white

9.25
#2F31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31BA
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31BA#FFFFFF#000000##FFFFFF
##2F31BA1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f31ba;
/* rgb */ color: rgb(47, 49, 186);
/* oklch */ color: oklch(41.8% 0.207 272.3);
Tailwind
colors: {
  custom: {
    50: '#7e6bd0',
    500: '#2f31ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f31ba;
$custom-light: #7e6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31ba",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 239.137,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41797,
    "c": 0.20701,
    "h": 272.3
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#2F31BA
secondary
#C9C87C
accent
#E145E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #2F31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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