#2F41A2#2F41A2

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

Color values

HEX#2F41A2
RGBrgb(47, 65, 162)
HSLhsl(231, 55%, 41%)
HSVhsv(231, 71%, 64%)
CMYKcmyk(71%, 59.9%, 0%, 36.5%)
CIE-LABlab(31.79, 26.71, -54.63)
CIE-LCHlch(31.79, 60.82, 296.06°)
OKLaboklab(42.23% 0.0005 -0.1575)
OKLCHoklch(42.23% 0.158 270.2)
XYZxyz(9.5819, 6.9926, 35.0201)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41A2 #A2902F
analogous
#2F7AA2 #2F41A2 #562FA2
triadic
#2F41A2 #A22F41 #41A22F
tetradic
#2F41A2 #A22F7A #A2902F #2FA256
square
#2F41A2 #A22F7A #A2902F #2FA256
split-complementary
#2F41A2 #A2562F #7AA22F
monochromatic
#131B43 #212E73 #2F41A2 #455AC9 #7584D7

Accessibility & contrast

On white

8.75
#2F41A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F41A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41A2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41A2#FFFFFF#000000##FFFFFF
##2F41A21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f41a2;
/* rgb */ color: rgb(47, 65, 162);
/* oklch */ color: oklch(42.2% 0.158 270.2);
Tailwind
colors: {
  custom: {
    50: '#7775be',
    500: '#2f41a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f41a2;
$custom-light: #7775be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41a2",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 230.609,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.15754,
    "h": 270.2
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#2F41A2
secondary
#BFB26E
accent
#C749DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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