#2F31BC#2F31BC

#2F31BC is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.209 H 272.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F31BC
RGBrgb(47, 49, 188)
HSLhsl(239, 60%, 46%)
HSVhsv(239, 75%, 74%)
CMYKcmyk(75%, 73.9%, 0%, 26.3%)
CIE-LABlab(30.47, 45.86, -72.31)
CIE-LCHlch(30.47, 85.63, 302.38°)
OKLaboklab(42.01% 0.0081 -0.2093)
OKLCHoklch(42.01% 0.209 272.2)
XYZxyz(11.3446, 6.4306, 48.2105)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31BC #BCBA2F
analogous
#2F77BC #2F31BC #732FBC
triadic
#2F31BC #BC2F31 #31BC2F
tetradic
#2F31BC #BC2F77 #BCBA2F #2FBC73
square
#2F31BC #BC2F77 #BCBA2F #2FBC73
split-complementary
#2F31BC #BC732F #77BC2F
monochromatic
#17175A #23248B #2F31BC #5456D4 #8586E0

Accessibility & contrast

On white

9.18
#2F31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31BC
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31BC#FFFFFF#000000##FFFFFF
##2F31BC1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0041BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f31bc;
/* rgb */ color: rgb(47, 49, 188);
/* oklch */ color: oklch(42.0% 0.209 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e6bd1',
    500: '#2f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f31bc;
$custom-light: #7e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31bc",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 239.149,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42006,
    "c": 0.20945,
    "h": 272.2
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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