#2F41B2#2F41B2

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

Color values

HEX#2F41B2
RGBrgb(47, 65, 178)
HSLhsl(232, 58%, 44%)
HSVhsv(232, 74%, 70%)
CMYKcmyk(73.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(33.13, 32.59, -62.02)
CIE-LCHlch(33.13, 70.06, 297.72°)
OKLaboklab(43.64% 0.0003 -0.1792)
OKLCHoklch(43.64% 0.179 270.1)
XYZxyz(11.0957, 7.5981, 42.9927)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B2 #B2A02F
analogous
#2F83B2 #2F41B2 #5F2FB2
triadic
#2F41B2 #B22F41 #41B22F
tetradic
#2F41B2 #B22F83 #B2A02F #2FB25F
square
#2F41B2 #B22F83 #B2A02F #2FB25F
split-complementary
#2F41B2 #B25F2F #83B22F
monochromatic
#151E51 #222F82 #2F41B2 #4E60D0 #7E8BDD

Accessibility & contrast

On white

8.33
#2F41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B2
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B2#FFFFFF#000000##FFFFFF
##2F41B21.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f41b2;
/* rgb */ color: rgb(47, 65, 178);
/* oklch */ color: oklch(43.6% 0.179 270.1);
Tailwind
colors: {
  custom: {
    50: '#7b75ca',
    500: '#2f41b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b2;
$custom-light: #7b75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b2",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 231.756,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.17921,
    "h": 270.1
  },
  "luminance": 0.07599
}

Semantic roles & 50–950 ramp

primary
#2F41B2
secondary
#C6BB77
accent
#CC46E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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