#2F3FA4#2F3FA4

#2F3FA4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.163 H 270.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F3FA4
RGBrgb(47, 63, 164)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(71.3%, 61.6%, 0%, 35.7%)
CIE-LABlab(31.44, 28.77, -56.41)
CIE-LCHlch(31.44, 63.33, 297.02°)
OKLaboklab(42.02% 0.0021 -0.1628)
OKLCHoklch(42.02% 0.163 270.7)
XYZxyz(9.6484, 6.8387, 35.9263)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FA4 #A4942F
analogous
#2F7AA4 #2F3FA4 #5A2FA4
triadic
#2F3FA4 #A42F3F #3FA42F
tetradic
#2F3FA4 #A42F7A #A4942F #2FA45A
square
#2F3FA4 #A42F7A #A4942F #2FA45A
split-complementary
#2F3FA4 #A45A2F #7AA42F
monochromatic
#141A45 #212D74 #2F3FA4 #4658CA #7683D8

Accessibility & contrast

On white

8.87
#2F3FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F3FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FA4
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FA4#FFFFFF#000000##FFFFFF
##2F3FA41.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3fa4;
/* rgb */ color: rgb(47, 63, 164);
/* oklch */ color: oklch(42.0% 0.163 270.7);
Tailwind
colors: {
  custom: {
    50: '#7874c0',
    500: '#2f3fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fa4;
$custom-light: #7874c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fa4",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 231.795,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42022,
    "c": 0.1628,
    "h": 270.7
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#2F3FA4
secondary
#C0B56F
accent
#CA49DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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