#2F3BA3#2F3BA3

#2F3BA3 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.166 H 271.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F3BA3
RGBrgb(47, 59, 163)
HSLhsl(234, 55%, 41%)
HSVhsv(234, 71%, 64%)
CMYKcmyk(71.2%, 63.8%, 0%, 36.1%)
CIE-LABlab(30.34, 31.02, -57.60)
CIE-LCHlch(30.34, 65.42, 298.31°)
OKLaboklab(41.19% 0.0051 -0.1663)
OKLCHoklch(41.19% 0.166 271.8)
XYZxyz(9.3449, 6.3757, 35.3814)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BA3 #A3972F
analogous
#2F75A3 #2F3BA3 #5D2FA3
triadic
#2F3BA3 #A32F3B #3BA32F
tetradic
#2F3BA3 #A32F75 #A3972F #2FA35D
square
#2F3BA3 #A32F75 #A3972F #2FA35D
split-complementary
#2F3BA3 #A35D2F #75A32F
monochromatic
#141944 #212A73 #2F3BA3 #4653CA #757FD7

Accessibility & contrast

On white

9.23
#2F3BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F3BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BA3
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BA3#FFFFFF#000000##FFFFFF
##2F3BA31.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3ba3;
/* rgb */ color: rgb(47, 59, 163);
/* oklch */ color: oklch(41.2% 0.166 271.8);
Tailwind
colors: {
  custom: {
    50: '#7871bf',
    500: '#2f3ba3',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ba3;
$custom-light: #7871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ba3",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 163
  },
  "hsl": {
    "h": 233.793,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41188,
    "c": 0.16639,
    "h": 271.8
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#2F3BA3
secondary
#BFB76F
accent
#CF49DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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