#2F31AA#2F31AA

#2F31AA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.187 H 273.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F31AA
RGBrgb(47, 49, 170)
HSLhsl(239, 57%, 43%)
HSVhsv(239, 72%, 67%)
CMYKcmyk(72.4%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.65, 39.78, -64.59)
CIE-LCHlch(28.65, 75.86, 301.63°)
OKLaboklab(40.16% 0.011 -0.1868)
OKLCHoklch(40.16% 0.187 273.4)
XYZxyz(9.5239, 5.7023, 38.6212)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31AA #AAA82F
analogous
#2F6FAA #2F31AA #6A2FAA
triadic
#2F31AA #AA2F31 #31AA2F
tetradic
#2F31AA #AA2F6F #AAA82F #2FAA6A
square
#2F31AA #AA2F6F #AAA82F #2FAA6A
split-complementary
#2F31AA #AA6A2F #6FAA2F
monochromatic
#14154A #22237A #2F31AA #494CCD #797BDA

Accessibility & contrast

On white

9.81
#2F31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31AA
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31AA#FFFFFF#000000##FFFFFF
##2F31AA1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f31aa;
/* rgb */ color: rgb(47, 49, 170);
/* oklch */ color: oklch(40.2% 0.187 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a6ac4',
    500: '#2f31aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f31aa;
$custom-light: #7a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31aa",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 239.024,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.18712,
    "h": 273.4
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#2F31AA
secondary
#C2C172
accent
#DD48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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