#2F3FB5#2F3FB5

#2F3FB5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.186 H 270.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2F3FB5
RGBrgb(47, 63, 181)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 71%)
CMYKcmyk(74%, 65.2%, 0%, 29%)
CIE-LABlab(32.91, 34.96, -64.16)
CIE-LCHlch(32.91, 73.07, 298.58°)
OKLaboklab(43.56% 0.0014 -0.1855)
OKLCHoklch(43.56% 0.186 270.4)
XYZxyz(11.2874, 7.4944, 44.5588)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FB5 #B5A52F
analogous
#2F82B5 #2F3FB5 #622FB5
triadic
#2F3FB5 #B52F3F #3FB52F
tetradic
#2F3FB5 #B52F82 #B5A52F #2FB562
square
#2F3FB5 #B52F82 #B5A52F #2FB562
split-complementary
#2F3FB5 #B5622F #82B52F
monochromatic
#161D54 #222E84 #2F3FB5 #505FD1 #808CDE

Accessibility & contrast

On white

8.40
#2F3FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F3FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FB5
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FB5#FFFFFF#000000##FFFFFF
##2F3FB51.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f3fb5;
/* rgb */ color: rgb(47, 63, 181);
/* oklch */ color: oklch(43.6% 0.186 270.4);
Tailwind
colors: {
  custom: {
    50: '#7c74cc',
    500: '#2f3fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fb5;
$custom-light: #7c74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fb5",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 232.836,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43559,
    "c": 0.18552,
    "h": 270.4
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#2F3FB5
secondary
#C7BE79
accent
#CF46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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