#2F3FA2#2F3FA2

#2F3FA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 270.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F3FA2
RGBrgb(47, 63, 162)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(71%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.27, 28.04, -55.48)
CIE-LCHlch(31.27, 62.16, 296.81°)
OKLaboklab(41.85% 0.0021 -0.16)
OKLCHoklch(41.85% 0.16 270.8)
XYZxyz(9.4692, 6.7671, 34.9826)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FA2 #A2922F
analogous
#2F78A2 #2F3FA2 #582FA2
triadic
#2F3FA2 #A22F3F #3FA22F
tetradic
#2F3FA2 #A22F78 #A2922F #2FA258
square
#2F3FA2 #A22F78 #A2922F #2FA258
split-complementary
#2F3FA2 #A2582F #78A22F
monochromatic
#131A43 #212D73 #2F3FA2 #4557C9 #7582D7

Accessibility & contrast

On white

8.92
#2F3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FA2
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FA2#FFFFFF#000000##FFFFFF
##2F3FA21.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3fa2;
/* rgb */ color: rgb(47, 63, 162);
/* oklch */ color: oklch(41.8% 0.160 270.8);
Tailwind
colors: {
  custom: {
    50: '#7774be',
    500: '#2f3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fa2;
$custom-light: #7774be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fa2",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 231.652,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41847,
    "c": 0.16006,
    "h": 270.8
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#2F3FA2
secondary
#BFB36E
accent
#CA49DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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