#2F41A9#2F41A9

#2F41A9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.167 H 270.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2F41A9
RGBrgb(47, 65, 169)
HSLhsl(231, 56%, 42%)
HSVhsv(231, 72%, 66%)
CMYKcmyk(72.2%, 61.5%, 0%, 33.7%)
CIE-LABlab(32.37, 29.30, -57.90)
CIE-LCHlch(32.37, 64.89, 296.84°)
OKLaboklab(42.84% 0.0005 -0.1671)
OKLCHoklch(42.84% 0.167 270.2)
XYZxyz(10.2216, 7.2485, 38.3888)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A9 #A9972F
analogous
#2F7EA9 #2F41A9 #5A2FA9
triadic
#2F41A9 #A92F41 #41A92F
tetradic
#2F41A9 #A92F7E #A9972F #2FA95A
square
#2F41A9 #A92F7E #A9972F #2FA95A
split-complementary
#2F41A9 #A95A2F #7EA92F
monochromatic
#141C49 #222F79 #2F41A9 #495CCC #7987DA

Accessibility & contrast

On white

8.57
#2F41A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F41A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A9
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A9#FFFFFF#000000##FFFFFF
##2F41A91.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f41a9;
/* rgb */ color: rgb(47, 65, 169);
/* oklch */ color: oklch(42.8% 0.167 270.2);
Tailwind
colors: {
  custom: {
    50: '#7975c3',
    500: '#2f41a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a9;
$custom-light: #7975c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a9",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 169
  },
  "hsl": {
    "h": 231.148,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.16714,
    "h": 270.2
  },
  "luminance": 0.0725
}

Semantic roles & 50–950 ramp

primary
#2F41A9
secondary
#C2B672
accent
#C948E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F41A9

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

Preview Lab → · Contrast checker → · Palette generator →

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