#2F41B7#2F41B7

#2F41B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.186 H 270.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F41B7
RGBrgb(47, 65, 183)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 74%, 72%)
CMYKcmyk(74.3%, 64.5%, 0%, 28.2%)
CIE-LABlab(33.57, 34.41, -64.26)
CIE-LCHlch(33.57, 72.90, 298.16°)
OKLaboklab(44.1% 0 -0.1858)
OKLCHoklch(44.1% 0.186 270)
XYZxyz(11.6069, 7.8026, 45.6849)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B7 #B7A52F
analogous
#2F85B7 #2F41B7 #612FB7
triadic
#2F41B7 #B72F41 #41B72F
tetradic
#2F41B7 #B72F85 #B7A52F #2FB761
square
#2F41B7 #B72F85 #B7A52F #2FB761
split-complementary
#2F41B7 #B7612F #85B72F
monochromatic
#161E56 #223086 #2F41B7 #5162D2 #828EDF

Accessibility & contrast

On white

8.20
#2F41B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F41B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B7
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B7#FFFFFF#000000##FFFFFF
##2F41B71.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f41b7;
/* rgb */ color: rgb(47, 65, 183);
/* oklch */ color: oklch(44.1% 0.186 270.0);
Tailwind
colors: {
  custom: {
    50: '#7c75ce',
    500: '#2f41b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b7;
$custom-light: #7c75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b7",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 232.059,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44098,
    "c": 0.18579,
    "h": 270
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#2F41B7
secondary
#C8BE7A
accent
#CE45E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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