#2F31AC#2F31AC

#2F31AC is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.190 H 273.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2F31AC
RGBrgb(47, 49, 172)
HSLhsl(239, 57%, 43%)
HSVhsv(239, 73%, 67%)
CMYKcmyk(72.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.85, 40.47, -65.47)
CIE-LCHlch(28.85, 76.97, 301.72°)
OKLaboklab(40.36% 0.0107 -0.1894)
OKLCHoklch(40.36% 0.19 273.2)
XYZxyz(9.7145, 5.7785, 39.6251)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31AC #ACAA2F
analogous
#2F6FAC #2F31AC #6B2FAC
triadic
#2F31AC #AC2F31 #31AC2F
tetradic
#2F31AC #AC2F6F #ACAA2F #2FAC6B
square
#2F31AC #AC2F6F #ACAA2F #2FAC6B
split-complementary
#2F31AC #AC6B2F #6FAC2F
monochromatic
#15164C #22237C #2F31AC #4B4DCE #7B7CDB

Accessibility & contrast

On white

9.74
#2F31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31AC
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31AC#FFFFFF#000000##FFFFFF
##2F31AC1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f31ac;
/* rgb */ color: rgb(47, 49, 172);
/* oklch */ color: oklch(40.4% 0.190 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b6ac6',
    500: '#2f31ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f31ac;
$custom-light: #7b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31ac",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 239.04,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.18966,
    "h": 273.2
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#2F31AC
secondary
#C3C274
accent
#DE47E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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