#2F46B7#2F46B7

#2F46B7 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.180 H 269.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2F46B7
RGBrgb(47, 70, 183)
HSLhsl(230, 59%, 45%)
HSVhsv(230, 74%, 72%)
CMYKcmyk(74.3%, 61.7%, 0%, 28.2%)
CIE-LABlab(34.81, 31.19, -62.24)
CIE-LCHlch(34.81, 69.61, 296.61°)
OKLaboklab(45.01% -0.0033 -0.1798)
OKLCHoklch(45.01% 0.18 269)
XYZxyz(11.9067, 8.4023, 45.7849)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46B7 #B7A02F
analogous
#2F8AB7 #2F46B7 #5C2FB7
triadic
#2F46B7 #B72F46 #46B72F
tetradic
#2F46B7 #B72F8A #B7A02F #2FB75C
square
#2F46B7 #B72F8A #B7A02F #2FB75C
split-complementary
#2F46B7 #B75C2F #8AB72F
monochromatic
#162156 #223386 #2F46B7 #5167D2 #8291DF

Accessibility & contrast

On white

7.83
#2F46B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F46B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46B7
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46B7#FFFFFF#000000##FFFFFF
##2F46B71.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#006378
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f46b7;
/* rgb */ color: rgb(47, 70, 183);
/* oklch */ color: oklch(45.0% 0.180 269.0);
Tailwind
colors: {
  custom: {
    50: '#7b79ce',
    500: '#2f46b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f46b7;
$custom-light: #7b79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46b7",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 183
  },
  "hsl": {
    "h": 229.853,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45011,
    "c": 0.17984,
    "h": 269
  },
  "luminance": 0.08404
}

Semantic roles & 50–950 ramp

primary
#2F46B7
secondary
#C8BB7A
accent
#C845E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F46B7

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

Preview Lab → · Contrast checker → · Palette generator →

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