#2F41B5#2F41B5

#2F41B5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.183 H 270.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2F41B5
RGBrgb(47, 65, 181)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 74%, 71%)
CMYKcmyk(74%, 64.1%, 0%, 29%)
CIE-LABlab(33.39, 33.68, -63.37)
CIE-LCHlch(33.39, 71.76, 297.99°)
OKLaboklab(43.92% 0.0001 -0.1832)
OKLCHoklch(43.92% 0.183 270)
XYZxyz(11.4002, 7.7199, 44.5964)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B5 #B5A32F
analogous
#2F84B5 #2F41B5 #602FB5
triadic
#2F41B5 #B52F41 #41B52F
tetradic
#2F41B5 #B52F84 #B5A32F #2FB560
square
#2F41B5 #B52F84 #B5A32F #2FB560
split-complementary
#2F41B5 #B5602F #84B52F
monochromatic
#161E54 #223084 #2F41B5 #5061D1 #808DDE

Accessibility & contrast

On white

8.25
#2F41B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F41B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B5
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B5#FFFFFF#000000##FFFFFF
##2F41B51.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f41b5;
/* rgb */ color: rgb(47, 65, 181);
/* oklch */ color: oklch(43.9% 0.183 270.0);
Tailwind
colors: {
  custom: {
    50: '#7b75cc',
    500: '#2f41b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b5;
$custom-light: #7b75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b5",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 231.94,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43915,
    "c": 0.18317,
    "h": 270
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#2F41B5
secondary
#C7BD79
accent
#CD46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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