#2F41A4#2F41A4

#2F41A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.160 H 270.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F41A4
RGBrgb(47, 65, 164)
HSLhsl(231, 55%, 41%)
HSVhsv(231, 71%, 64%)
CMYKcmyk(71.3%, 60.4%, 0%, 35.7%)
CIE-LABlab(31.95, 27.45, -55.57)
CIE-LCHlch(31.95, 61.98, 296.29°)
OKLaboklab(42.41% 0.0005 -0.1603)
OKLCHoklch(42.41% 0.16 270.2)
XYZxyz(9.7611, 7.0643, 35.9639)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A4 #A4922F
analogous
#2F7CA4 #2F41A4 #582FA4
triadic
#2F41A4 #A42F41 #41A42F
tetradic
#2F41A4 #A42F7C #A4922F #2FA458
square
#2F41A4 #A42F7C #A4922F #2FA458
split-complementary
#2F41A4 #A4582F #7CA42F
monochromatic
#141B45 #212E74 #2F41A4 #465ACA #7685D8

Accessibility & contrast

On white

8.70
#2F41A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F41A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A4
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A4#FFFFFF#000000##FFFFFF
##2F41A41.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f41a4;
/* rgb */ color: rgb(47, 65, 164);
/* oklch */ color: oklch(42.4% 0.160 270.2);
Tailwind
colors: {
  custom: {
    50: '#7775c0',
    500: '#2f41a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a4;
$custom-light: #7775c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a4",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 164
  },
  "hsl": {
    "h": 230.769,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42405,
    "c": 0.1603,
    "h": 270.2
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#2F41A4
secondary
#C0B36F
accent
#C849DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F41A4

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

Preview Lab → · Contrast checker → · Palette generator →

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