#2F46B1#2F46B1

#2F46B1 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.5% C 0.172 H 268.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2F46B1
RGBrgb(47, 70, 177)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 73%, 69%)
CMYKcmyk(73.4%, 60.5%, 0%, 30.6%)
CIE-LABlab(34.31, 28.97, -59.50)
CIE-LCHlch(34.31, 66.18, 295.96°)
OKLaboklab(44.49% -0.0032 -0.1718)
OKLCHoklch(44.49% 0.172 268.9)
XYZxyz(11.2955, 8.1578, 42.5658)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46B1 #B19A2F
analogous
#2F87B1 #2F46B1 #592FB1
triadic
#2F46B1 #B12F46 #46B12F
tetradic
#2F46B1 #B12F87 #B19A2F #2FB159
square
#2F46B1 #B12F87 #B19A2F #2FB159
split-complementary
#2F46B1 #B1592F #87B12F
monochromatic
#152050 #223381 #2F46B1 #4D64D0 #7E8FDD

Accessibility & contrast

On white

7.98
#2F46B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F46B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46B1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46B1#FFFFFF#000000##FFFFFF
##2F46B11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f46b1;
/* rgb */ color: rgb(47, 70, 177);
/* oklch */ color: oklch(44.5% 0.172 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a79c9',
    500: '#2f46b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f46b1;
$custom-light: #7a79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46b1",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 177
  },
  "hsl": {
    "h": 229.385,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.1718,
    "h": 268.9
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#2F46B1
secondary
#C5B776
accent
#C647E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F46B1

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

Preview Lab → · Contrast checker → · Palette generator →

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