#2F3FA7#2F3FA7

#2F3FA7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.167 H 270.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2F3FA7
RGBrgb(47, 63, 167)
HSLhsl(232, 56%, 42%)
HSVhsv(232, 72%, 65%)
CMYKcmyk(71.9%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.69, 29.87, -57.81)
CIE-LCHlch(31.69, 65.07, 297.33°)
OKLaboklab(42.29% 0.002 -0.1669)
OKLCHoklch(42.29% 0.167 270.7)
XYZxyz(9.9225, 6.9484, 37.3700)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FA7 #A7972F
analogous
#2F7BA7 #2F3FA7 #5B2FA7
triadic
#2F3FA7 #A72F3F #3FA72F
tetradic
#2F3FA7 #A72F7B #A7972F #2FA75B
square
#2F3FA7 #A72F7B #A7972F #2FA75B
split-complementary
#2F3FA7 #A75B2F #7BA72F
monochromatic
#141B47 #222D77 #2F3FA7 #4859CB #7885D9

Accessibility & contrast

On white

8.79
#2F3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F3FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FA7
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FA7#FFFFFF#000000##FFFFFF
##2F3FA71.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3fa7;
/* rgb */ color: rgb(47, 63, 167);
/* oklch */ color: oklch(42.3% 0.167 270.7);
Tailwind
colors: {
  custom: {
    50: '#7874c2',
    500: '#2f3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fa7;
$custom-light: #7874c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fa7",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 232,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42287,
    "c": 0.16689,
    "h": 270.7
  },
  "luminance": 0.06949
}

Semantic roles & 50–950 ramp

primary
#2F3FA7
secondary
#C1B671
accent
#CB48DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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