#2F3AB2#2F3AB2

#2F3AB2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.187 H 271.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2F3AB2
RGBrgb(47, 58, 178)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(73.6%, 67.4%, 0%, 30.2%)
CIE-LABlab(31.45, 37.05, -64.78)
CIE-LCHlch(31.45, 74.62, 299.77°)
OKLaboklab(42.41% 0.0047 -0.1873)
OKLCHoklch(42.41% 0.187 271.4)
XYZxyz(10.7185, 6.8437, 42.8669)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB2 #B2A72F
analogous
#2F7CB2 #2F3AB2 #662FB2
triadic
#2F3AB2 #B22F3A #3AB22F
tetradic
#2F3AB2 #B22F7C #B2A72F #2FB266
square
#2F3AB2 #B22F7C #B2A72F #2FB266
split-complementary
#2F3AB2 #B2662F #7CB22F
monochromatic
#151A51 #222A82 #2F3AB2 #4E59D0 #7E86DD

Accessibility & contrast

On white

8.86
#2F3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3AB2
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB2#FFFFFF#000000##FFFFFF
##2F3AB21.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ab2;
/* rgb */ color: rgb(47, 58, 178);
/* oklch */ color: oklch(42.4% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b70ca',
    500: '#2f3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab2;
$custom-light: #7b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab2",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 234.962,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.18739,
    "h": 271.4
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#2F3AB2
secondary
#C6BF77
accent
#D446E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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