#2F41B3#2F41B3

#2F41B3 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.181 H 270.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F41B3
RGBrgb(47, 65, 179)
HSLhsl(232, 58%, 44%)
HSVhsv(232, 74%, 70%)
CMYKcmyk(73.7%, 63.7%, 0%, 29.8%)
CIE-LABlab(33.22, 32.96, -62.47)
CIE-LCHlch(33.22, 70.63, 297.82°)
OKLaboklab(43.73% 0.0002 -0.1805)
OKLCHoklch(43.73% 0.181 270.1)
XYZxyz(11.1965, 7.6384, 43.5234)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B3 #B3A12F
analogous
#2F83B3 #2F41B3 #5F2FB3
triadic
#2F41B3 #B32F41 #41B32F
tetradic
#2F41B3 #B32F83 #B3A12F #2FB35F
square
#2F41B3 #B32F83 #B3A12F #2FB35F
split-complementary
#2F41B3 #B35F2F #83B32F
monochromatic
#161E52 #222F83 #2F41B3 #4F60D1 #7F8CDD

Accessibility & contrast

On white

8.31
#2F41B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F41B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B3
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B3#FFFFFF#000000##FFFFFF
##2F41B31.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f41b3;
/* rgb */ color: rgb(47, 65, 179);
/* oklch */ color: oklch(43.7% 0.181 270.1);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#2f41b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b3;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b3",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 231.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43733,
    "c": 0.18053,
    "h": 270.1
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#2F41B3
secondary
#C6BB78
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F41B3

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

Preview Lab → · Contrast checker → · Palette generator →

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