#2F3BB7#2F3BB7

#2F3BB7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.193 H 271.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2F3BB7
RGBrgb(47, 59, 183)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 72%)
CMYKcmyk(74.3%, 67.8%, 0%, 28.2%)
CIE-LABlab(32.15, 38.19, -66.60)
CIE-LCHlch(32.15, 76.77, 299.83°)
OKLaboklab(43.06% 0.0037 -0.1926)
OKLCHoklch(43.06% 0.193 271.1)
XYZxyz(11.2806, 7.1500, 45.5761)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BB7 #B7AB2F
analogous
#2F7FB7 #2F3BB7 #672FB7
triadic
#2F3BB7 #B72F3B #3BB72F
tetradic
#2F3BB7 #B72F7F #B7AB2F #2FB767
square
#2F3BB7 #B72F7F #B7AB2F #2FB767
split-complementary
#2F3BB7 #B7672F #7FB72F
monochromatic
#161C56 #222B86 #2F3BB7 #515CD2 #828ADF

Accessibility & contrast

On white

8.64
#2F3BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F3BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BB7
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BB7#FFFFFF#000000##FFFFFF
##2F3BB71.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f3bb7;
/* rgb */ color: rgb(47, 59, 183);
/* oklch */ color: oklch(43.1% 0.193 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c71ce',
    500: '#2f3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3bb7;
$custom-light: #7c71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3bb7",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 234.706,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.19268,
    "h": 271.1
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#2F3BB7
secondary
#C8C17A
accent
#D445E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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