#2F31B2#2F31B2

#2F31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.197 H 272.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2F31B2
RGBrgb(47, 49, 178)
HSLhsl(239, 58%, 44%)
HSVhsv(239, 74%, 70%)
CMYKcmyk(73.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.45, 42.51, -68.07)
CIE-LCHlch(29.45, 80.25, 301.99°)
OKLaboklab(40.97% 0.0098 -0.1969)
OKLCHoklch(40.97% 0.197 272.8)
XYZxyz(10.3038, 6.0143, 42.7287)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31B2 #B2B02F
analogous
#2F73B2 #2F31B2 #6F2FB2
triadic
#2F31B2 #B22F31 #31B22F
tetradic
#2F31B2 #B22F73 #B2B02F #2FB26F
square
#2F31B2 #B22F73 #B2B02F #2FB26F
split-complementary
#2F31B2 #B26F2F #73B22F
monochromatic
#151651 #222482 #2F31B2 #4E50D0 #7E80DD

Accessibility & contrast

On white

9.53
#2F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31B2
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31B2#FFFFFF#000000##FFFFFF
##2F31B21.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f31b2;
/* rgb */ color: rgb(47, 49, 178);
/* oklch */ color: oklch(41.0% 0.197 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c6aca',
    500: '#2f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f31b2;
$custom-light: #7c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31b2",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 239.084,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40969,
    "c": 0.19717,
    "h": 272.8
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#2F31B2
secondary
#C6C577
accent
#DF46E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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