#2F41B1#2F41B1

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

Color values

HEX#2F41B1
RGBrgb(47, 65, 177)
HSLhsl(232, 58%, 44%)
HSVhsv(232, 73%, 69%)
CMYKcmyk(73.4%, 63.3%, 0%, 30.6%)
CIE-LABlab(33.05, 32.23, -61.56)
CIE-LCHlch(33.05, 69.49, 297.63°)
OKLaboklab(43.55% 0.0003 -0.1779)
OKLCHoklch(43.55% 0.178 270.1)
XYZxyz(10.9957, 7.5581, 42.4658)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B1 #B19F2F
analogous
#2F82B1 #2F41B1 #5E2FB1
triadic
#2F41B1 #B12F41 #41B12F
tetradic
#2F41B1 #B12F82 #B19F2F #2FB15E
square
#2F41B1 #B12F82 #B19F2F #2FB15E
split-complementary
#2F41B1 #B15E2F #82B12F
monochromatic
#151D50 #222F81 #2F41B1 #4D5FD0 #7E8BDD

Accessibility & contrast

On white

8.36
#2F41B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F41B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B1
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B1#FFFFFF#000000##FFFFFF
##2F41B11.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f41b1;
/* rgb */ color: rgb(47, 65, 177);
/* oklch */ color: oklch(43.6% 0.178 270.1);
Tailwind
colors: {
  custom: {
    50: '#7a75c9',
    500: '#2f41b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b1;
$custom-light: #7a75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b1",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 231.692,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43552,
    "c": 0.17788,
    "h": 270.1
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#2F41B1
secondary
#C5BA76
accent
#CC47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F41B1

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

Preview Lab → · Contrast checker → · Palette generator →

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