#2F41A6#2F41A6

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

Color values

HEX#2F41A6
RGBrgb(47, 65, 166)
HSLhsl(231, 56%, 42%)
HSVhsv(231, 72%, 65%)
CMYKcmyk(71.7%, 60.8%, 0%, 34.9%)
CIE-LABlab(32.12, 28.19, -56.51)
CIE-LCHlch(32.12, 63.15, 296.52°)
OKLaboklab(42.58% 0.0005 -0.163)
OKLCHoklch(42.58% 0.163 270.2)
XYZxyz(9.9432, 7.1371, 36.9226)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A6 #A6942F
analogous
#2F7DA6 #2F41A6 #582FA6
triadic
#2F41A6 #A62F41 #41A62F
tetradic
#2F41A6 #A62F7D #A6942F #2FA658
square
#2F41A6 #A62F7D #A6942F #2FA658
split-complementary
#2F41A6 #A6582F #7DA62F
monochromatic
#141C47 #212E76 #2F41A6 #475BCB #7786D8

Accessibility & contrast

On white

8.65
#2F41A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F41A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A6#FFFFFF#000000##FFFFFF
##2F41A61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f41a6;
/* rgb */ color: rgb(47, 65, 166);
/* oklch */ color: oklch(42.6% 0.163 270.2);
Tailwind
colors: {
  custom: {
    50: '#7875c1',
    500: '#2f41a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a6;
$custom-light: #7875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a6",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 230.924,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42578,
    "c": 0.16305,
    "h": 270.2
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#2F41A6
secondary
#C1B470
accent
#C849DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F41A6

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

Preview Lab → · Contrast checker → · Palette generator →

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