#2F31B3#2F31B3

#2F31B3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.198 H 272.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2F31B3
RGBrgb(47, 49, 179)
HSLhsl(239, 58%, 44%)
HSVhsv(239, 74%, 70%)
CMYKcmyk(73.7%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.55, 42.85, -68.50)
CIE-LCHlch(29.55, 80.79, 302.03°)
OKLaboklab(41.07% 0.0096 -0.1982)
OKLCHoklch(41.07% 0.198 272.8)
XYZxyz(10.4046, 6.0546, 43.2594)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31B3 #B3B12F
analogous
#2F73B3 #2F31B3 #6F2FB3
triadic
#2F31B3 #B32F31 #31B32F
tetradic
#2F31B3 #B32F73 #B3B12F #2FB36F
square
#2F31B3 #B32F73 #B3B12F #2FB36F
split-complementary
#2F31B3 #B36F2F #73B32F
monochromatic
#161652 #222483 #2F31B3 #4F51D1 #7F80DD

Accessibility & contrast

On white

9.50
#2F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31B3
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31B3#FFFFFF#000000##FFFFFF
##2F31B31.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f31b3;
/* rgb */ color: rgb(47, 49, 179);
/* oklch */ color: oklch(41.1% 0.198 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c6acb',
    500: '#2f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f31b3;
$custom-light: #7c6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31b3",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 239.091,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41072,
    "c": 0.19841,
    "h": 272.8
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#2F31B3
secondary
#C6C578
accent
#DF46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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