#2F3C84#2F3C84

#2F3C84 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.121 H 271.9°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#2F3C84
RGBrgb(47, 60, 132)
HSLhsl(231, 47%, 35%)
HSVhsv(231, 64%, 52%)
CMYKcmyk(64.4%, 54.5%, 0%, 48.2%)
CIE-LABlab(28.12, 18.94, -42.21)
CIE-LCHlch(28.12, 46.27, 294.16°)
OKLaboklab(38.75% 0.004 -0.1211)
OKLCHoklch(38.75% 0.121 271.9)
XYZxyz(6.9516, 5.5014, 22.5209)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C84 #84772F
analogous
#2F6684 #2F3C84 #4D2F84
triadic
#2F3C84 #842F3C #3C842F
tetradic
#2F3C84 #842F66 #84772F #2F844D
square
#2F3C84 #842F66 #84772F #2F844D
split-complementary
#2F3C84 #844D2F #66842F
monochromatic
#0F132A #1F2757 #2F3C84 #3F51B1 #6574C8

Accessibility & contrast

On white

10.00
#2F3C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F3C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C84
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C84#FFFFFF#000000##FFFFFF
##2F3C841.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4687
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3c84;
/* rgb */ color: rgb(47, 60, 132);
/* oklch */ color: oklch(38.8% 0.121 271.9);
Tailwind
colors: {
  custom: {
    50: '#7171a8',
    500: '#2f3c84',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c84;
$custom-light: #7171a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c84",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 132
  },
  "hsl": {
    "h": 230.824,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38754,
    "c": 0.12114,
    "h": 271.9
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#2F3C84
secondary
#AFA360
accent
#C351D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3C84

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

Preview Lab → · Contrast checker → · Palette generator →

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