#2F41AC#2F41AC

#2F41AC is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.171 H 270.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2F41AC
RGBrgb(47, 65, 172)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(72.7%, 62.2%, 0%, 32.5%)
CIE-LABlab(32.62, 30.40, -59.28)
CIE-LCHlch(32.62, 66.62, 297.15°)
OKLaboklab(43.11% 0.0004 -0.1712)
OKLCHoklch(43.11% 0.171 270.1)
XYZxyz(10.5064, 7.3624, 39.8891)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41AC #AC9A2F
analogous
#2F7FAC #2F41AC #5B2FAC
triadic
#2F41AC #AC2F41 #41AC2F
tetradic
#2F41AC #AC2F7F #AC9A2F #2FAC5B
square
#2F41AC #AC2F7F #AC9A2F #2FAC5B
split-complementary
#2F41AC #AC5B2F #7FAC2F
monochromatic
#151D4C #222F7C #2F41AC #4B5DCE #7B88DB

Accessibility & contrast

On white

8.49
#2F41AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F41AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41AC
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41AC#FFFFFF#000000##FFFFFF
##2F41AC1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f41ac;
/* rgb */ color: rgb(47, 65, 172);
/* oklch */ color: oklch(43.1% 0.171 270.1);
Tailwind
colors: {
  custom: {
    50: '#7975c6',
    500: '#2f41ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f41ac;
$custom-light: #7975c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41ac",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 231.36,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43105,
    "c": 0.17119,
    "h": 270.1
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#2F41AC
secondary
#C3B874
accent
#CA47E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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