#2F41B8#2F41B8

#2F41B8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.187 H 270.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2F41B8
RGBrgb(47, 65, 184)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 74%, 72%)
CMYKcmyk(74.5%, 64.7%, 0%, 27.8%)
CIE-LABlab(33.66, 34.77, -64.71)
CIE-LCHlch(33.66, 73.46, 298.25°)
OKLaboklab(44.19% 0 -0.1871)
OKLCHoklch(44.19% 0.187 270)
XYZxyz(11.7114, 7.8444, 46.2350)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41B8 #B8A62F
analogous
#2F85B8 #2F41B8 #622FB8
triadic
#2F41B8 #B82F41 #41B82F
tetradic
#2F41B8 #B82F85 #B8A62F #2FB862
square
#2F41B8 #B82F85 #B8A62F #2FB862
split-complementary
#2F41B8 #B8622F #85B82F
monochromatic
#161F57 #233087 #2F41B8 #5262D3 #828EDF

Accessibility & contrast

On white

8.17
#2F41B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F41B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41B8
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41B8#FFFFFF#000000##FFFFFF
##2F41B81.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f41b8;
/* rgb */ color: rgb(47, 65, 184);
/* oklch */ color: oklch(44.2% 0.187 270.0);
Tailwind
colors: {
  custom: {
    50: '#7c75ce',
    500: '#2f41b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f41b8;
$custom-light: #7c75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41b8",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 232.117,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4419,
    "c": 0.1871,
    "h": 270
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#2F41B8
secondary
#C8BE7B
accent
#CE45E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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