#2F41A1#2F41A1

#2F41A1 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.156 H 270.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2F41A1
RGBrgb(47, 65, 161)
HSLhsl(231, 55%, 41%)
HSVhsv(231, 71%, 63%)
CMYKcmyk(70.8%, 59.6%, 0%, 36.9%)
CIE-LABlab(31.71, 26.34, -54.16)
CIE-LCHlch(31.71, 60.23, 295.94°)
OKLaboklab(42.15% 0.0005 -0.1562)
OKLCHoklch(42.15% 0.156 270.2)
XYZxyz(9.4934, 6.9572, 34.5539)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A1 #A18F2F
analogous
#2F7AA1 #2F41A1 #562FA1
triadic
#2F41A1 #A12F41 #41A12F
tetradic
#2F41A1 #A12F7A #A18F2F #2FA156
square
#2F41A1 #A12F7A #A18F2F #2FA156
split-complementary
#2F41A1 #A1562F #7AA12F
monochromatic
#131B42 #212E72 #2F41A1 #4559C9 #7484D6

Accessibility & contrast

On white

8.78
#2F41A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F41A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A1
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A1#FFFFFF#000000##FFFFFF
##2F41A11.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f41a1;
/* rgb */ color: rgb(47, 65, 161);
/* oklch */ color: oklch(42.1% 0.156 270.2);
Tailwind
colors: {
  custom: {
    50: '#7775be',
    500: '#2f41a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a1;
$custom-light: #7775be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a1",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 230.526,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.15616,
    "h": 270.2
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#2F41A1
secondary
#BEB16E
accent
#C74ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F41A1

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

Preview Lab → · Contrast checker → · Palette generator →

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