#2F41A5#2F41A5

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

Color values

HEX#2F41A5
RGBrgb(47, 65, 165)
HSLhsl(231, 56%, 42%)
HSVhsv(231, 72%, 65%)
CMYKcmyk(71.5%, 60.6%, 0%, 35.3%)
CIE-LABlab(32.03, 27.82, -56.04)
CIE-LCHlch(32.03, 62.57, 296.40°)
OKLaboklab(42.49% 0.0005 -0.1617)
OKLCHoklch(42.49% 0.162 270.2)
XYZxyz(9.8518, 7.1006, 36.4414)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A5 #A5932F
analogous
#2F7CA5 #2F41A5 #582FA5
triadic
#2F41A5 #A52F41 #41A52F
tetradic
#2F41A5 #A52F7C #A5932F #2FA558
square
#2F41A5 #A52F7C #A5932F #2FA558
split-complementary
#2F41A5 #A5582F #7CA52F
monochromatic
#141B46 #212E75 #2F41A5 #475BCB #7685D8

Accessibility & contrast

On white

8.68
#2F41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F41A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A5
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A5#FFFFFF#000000##FFFFFF
##2F41A51.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f41a5;
/* rgb */ color: rgb(47, 65, 165);
/* oklch */ color: oklch(42.5% 0.162 270.2);
Tailwind
colors: {
  custom: {
    50: '#7875c1',
    500: '#2f41a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a5;
$custom-light: #7875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a5",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 230.847,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42491,
    "c": 0.16168,
    "h": 270.2
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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