#2F41B4#2F41B4

#2F41B4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.182 H 270.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2F41B4
RGBrgb(47, 65, 180)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 74%, 71%)
CMYKcmyk(73.9%, 63.9%, 0%, 29.4%)
CIE-LABlab(33.31, 33.32, -62.92)
CIE-LCHlch(33.31, 71.20, 297.90°)
OKLaboklab(43.82% 0.0002 -0.1819)
OKLCHoklch(43.82% 0.182 270.1)
XYZxyz(11.2980, 7.6790, 44.0579)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B4 #B4A22F
analogous
#2F83B4 #2F41B4 #602FB4
triadic
#2F41B4 #B42F41 #41B42F
tetradic
#2F41B4 #B42F83 #B4A22F #2FB460
square
#2F41B4 #B42F83 #B4A22F #2FB460
split-complementary
#2F41B4 #B4602F #83B42F
monochromatic
#161E53 #222F83 #2F41B4 #4F61D1 #808CDE

Accessibility & contrast

On white

8.28
#2F41B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F41B4
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B4#FFFFFF#000000##FFFFFF
##2F41B41.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f41b4;
/* rgb */ color: rgb(47, 65, 180);
/* oklch */ color: oklch(43.8% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#2f41b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b4;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b4",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 231.88,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43824,
    "c": 0.18185,
    "h": 270.1
  },
  "luminance": 0.0768
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F41B4

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

Preview Lab → · Contrast checker → · Palette generator →

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