#2F3CAC#2F3CAC

#2F3CAC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.177 H 271.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2F3CAC
RGBrgb(47, 60, 172)
HSLhsl(234, 57%, 43%)
HSVhsv(234, 73%, 67%)
CMYKcmyk(72.7%, 65.1%, 0%, 32.5%)
CIE-LABlab(31.38, 33.64, -61.31)
CIE-LCHlch(31.38, 69.93, 298.75°)
OKLaboklab(42.19% 0.0039 -0.1772)
OKLCHoklch(42.19% 0.177 271.3)
XYZxyz(10.2320, 6.8136, 39.7976)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CAC #AC9F2F
analogous
#2F7AAC #2F3CAC #602FAC
triadic
#2F3CAC #AC2F3C #3CAC2F
tetradic
#2F3CAC #AC2F7A #AC9F2F #2FAC60
square
#2F3CAC #AC2F7A #AC9F2F #2FAC60
split-complementary
#2F3CAC #AC602F #7AAC2F
monochromatic
#151A4C #222B7C #2F3CAC #4B58CE #7B85DB

Accessibility & contrast

On white

8.89
#2F3CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F3CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CAC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CAC#FFFFFF#000000##FFFFFF
##2F3CAC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3cac;
/* rgb */ color: rgb(47, 60, 172);
/* oklch */ color: oklch(42.2% 0.177 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a72c6',
    500: '#2f3cac',
    950: '#000000',
  },
}
SCSS
$custom: #2f3cac;
$custom-light: #7a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3cac",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 233.76,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42193,
    "c": 0.17722,
    "h": 271.3
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#2F3CAC
secondary
#C3BB74
accent
#D047E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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