#2F31A2#2F31A2

#2F31A2 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.177 H 273.9°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#2F31A2
RGBrgb(47, 49, 162)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 64%)
CMYKcmyk(71%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.87, 37.02, -61.05)
CIE-LCHlch(27.87, 71.40, 301.23°)
OKLaboklab(39.36% 0.0121 -0.1764)
OKLCHoklch(39.36% 0.177 273.9)
XYZxyz(8.7900, 5.4088, 34.7562)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31A2 #A2A02F
analogous
#2F6AA2 #2F31A2 #662FA2
triadic
#2F31A2 #A22F31 #31A22F
tetradic
#2F31A2 #A22F6A #A2A02F #2FA266
square
#2F31A2 #A22F6A #A2A02F #2FA266
split-complementary
#2F31A2 #A2662F #6AA22F
monochromatic
#131443 #212373 #2F31A2 #4547C9 #7576D7

Accessibility & contrast

On white

10.09
#2F31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31A2
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31A2#FFFFFF#000000##FFFFFF
##2F31A21.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f31a2;
/* rgb */ color: rgb(47, 49, 162);
/* oklch */ color: oklch(39.4% 0.177 273.9);
Tailwind
colors: {
  custom: {
    50: '#786abf',
    500: '#2f31a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f31a2;
$custom-light: #786abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31a2",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 238.957,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.17687,
    "h": 273.9
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#2F31A2
secondary
#BFBD6E
accent
#DC49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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