#2F41AB#2F41AB

#2F41AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.170 H 270.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2F41AB
RGBrgb(47, 65, 171)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(72.5%, 62%, 0%, 32.9%)
CIE-LABlab(32.53, 30.03, -58.82)
CIE-LCHlch(32.53, 66.05, 297.05°)
OKLaboklab(43.02% 0.0005 -0.1698)
OKLCHoklch(43.02% 0.17 270.2)
XYZxyz(10.4108, 7.3241, 39.3852)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F41AB #AB992F
analogous
#2F7FAB #2F41AB #5B2FAB
triadic
#2F41AB #AB2F41 #41AB2F
tetradic
#2F41AB #AB2F7F #AB992F #2FAB5B
square
#2F41AB #AB2F7F #AB992F #2FAB5B
split-complementary
#2F41AB #AB5B2F #7FAB2F
monochromatic
#151D4B #222F7B #2F41AB #4A5DCD #7A88DA

Accessibility & contrast

On white

8.52
#2F41AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F41AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F41AB
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F41AB#FFFFFF#000000##FFFFFF
##2F41AB1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f41ab;
/* rgb */ color: rgb(47, 65, 171);
/* oklch */ color: oklch(43.0% 0.170 270.2);
Tailwind
colors: {
  custom: {
    50: '#7975c5',
    500: '#2f41ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f41ab;
$custom-light: #7975c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f41ab",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 231.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43016,
    "c": 0.16984,
    "h": 270.2
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#2F41AB
secondary
#C3B773
accent
#CA48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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