#2F41A3#2F41A3

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

Color values

HEX#2F41A3
RGBrgb(47, 65, 163)
HSLhsl(231, 55%, 41%)
HSVhsv(231, 71%, 64%)
CMYKcmyk(71.2%, 60.1%, 0%, 36.1%)
CIE-LABlab(31.87, 27.09, -55.10)
CIE-LCHlch(31.87, 61.40, 296.18°)
OKLaboklab(42.32% 0.0005 -0.1589)
OKLCHoklch(42.32% 0.159 270.2)
XYZxyz(9.6712, 7.0283, 35.4901)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A3 #A3912F
analogous
#2F7BA3 #2F41A3 #572FA3
triadic
#2F41A3 #A32F41 #41A32F
tetradic
#2F41A3 #A32F7B #A3912F #2FA357
square
#2F41A3 #A32F7B #A3912F #2FA357
split-complementary
#2F41A3 #A3572F #7BA32F
monochromatic
#141B44 #212E73 #2F41A3 #465ACA #7584D7

Accessibility & contrast

On white

8.73
#2F41A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F41A3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A3#FFFFFF#000000##FFFFFF
##2F41A31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f41a3;
/* rgb */ color: rgb(47, 65, 163);
/* oklch */ color: oklch(42.3% 0.159 270.2);
Tailwind
colors: {
  custom: {
    50: '#7775bf',
    500: '#2f41a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a3;
$custom-light: #7775bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a3",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 230.69,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.15892,
    "h": 270.2
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#2F41A3
secondary
#BFB36F
accent
#C749DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F41A3

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

Preview Lab → · Contrast checker → · Palette generator →

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