#2F41AA#2F41AA

#2F41AA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.168 H 270.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2F41AA
RGBrgb(47, 65, 170)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 72%, 67%)
CMYKcmyk(72.4%, 61.8%, 0%, 33.3%)
CIE-LABlab(32.45, 29.67, -58.36)
CIE-LCHlch(32.45, 65.47, 296.94°)
OKLaboklab(42.93% 0.0005 -0.1685)
OKLCHoklch(42.93% 0.168 270.2)
XYZxyz(10.3158, 7.2862, 38.8851)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41AA #AA982F
analogous
#2F7EAA #2F41AA #5B2FAA
triadic
#2F41AA #AA2F41 #41AA2F
tetradic
#2F41AA #AA2F7E #AA982F #2FAA5B
square
#2F41AA #AA2F7E #AA982F #2FAA5B
split-complementary
#2F41AA #AA5B2F #7EAA2F
monochromatic
#141C4A #222F7A #2F41AA #495DCD #7988DA

Accessibility & contrast

On white

8.55
#2F41AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F41AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41AA
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41AA#FFFFFF#000000##FFFFFF
##2F41AA1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f41aa;
/* rgb */ color: rgb(47, 65, 170);
/* oklch */ color: oklch(42.9% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#7975c4',
    500: '#2f41aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f41aa;
$custom-light: #7975c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41aa",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 231.22,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42928,
    "c": 0.16849,
    "h": 270.2
  },
  "luminance": 0.07287
}

Semantic roles & 50–950 ramp

primary
#2F41AA
secondary
#C2B772
accent
#CA48E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F41AA

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

Preview Lab → · Contrast checker → · Palette generator →

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