#2F46BB#2F46BB

#2F46BB is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.185 H 269.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2F46BB
RGBrgb(47, 70, 187)
HSLhsl(230, 60%, 46%)
HSVhsv(230, 75%, 73%)
CMYKcmyk(74.9%, 62.6%, 0%, 26.7%)
CIE-LABlab(35.15, 32.65, -64.04)
CIE-LCHlch(35.15, 71.89, 297.01°)
OKLaboklab(45.37% -0.0033 -0.1851)
OKLCHoklch(45.37% 0.185 269)
XYZxyz(12.3290, 8.5712, 48.0087)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46BB #BBA42F
analogous
#2F8CBB #2F46BB #5E2FBB
triadic
#2F46BB #BB2F46 #46BB2F
tetradic
#2F46BB #BB2F8C #BBA42F #2FBB5E
square
#2F46BB #BB2F8C #BBA42F #2FBB5E
split-complementary
#2F46BB #BB5E2F #8CBB2F
monochromatic
#162159 #23348A #2F46BB #5368D4 #8493E0

Accessibility & contrast

On white

7.74
#2F46BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F46BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46BB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46BB#FFFFFF#000000##FFFFFF
##2F46BB1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f46bb;
/* rgb */ color: rgb(47, 70, 187);
/* oklch */ color: oklch(45.4% 0.185 269.0);
Tailwind
colors: {
  custom: {
    50: '#7c79d0',
    500: '#2f46bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f46bb;
$custom-light: #7c79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46bb",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 230.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45366,
    "c": 0.18513,
    "h": 269
  },
  "luminance": 0.08573
}

Semantic roles & 50–950 ramp

primary
#2F46BB
secondary
#C9BD7C
accent
#C945E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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