#2F3DAC#2F3DAC

#2F3DAC is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.176 H 271.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2F3DAC
RGBrgb(47, 61, 172)
HSLhsl(233, 57%, 43%)
HSVhsv(233, 73%, 67%)
CMYKcmyk(72.7%, 64.5%, 0%, 32.5%)
CIE-LABlab(31.62, 32.99, -60.91)
CIE-LCHlch(31.62, 69.27, 298.44°)
OKLaboklab(42.37% 0.0032 -0.176)
OKLCHoklch(42.37% 0.176 271.1)
XYZxyz(10.2849, 6.9193, 39.8153)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DAC #AC9E2F
analogous
#2F7BAC #2F3DAC #5F2FAC
triadic
#2F3DAC #AC2F3D #3DAC2F
tetradic
#2F3DAC #AC2F7B #AC9E2F #2FAC5F
square
#2F3DAC #AC2F7B #AC9E2F #2FAC5F
split-complementary
#2F3DAC #AC5F2F #7BAC2F
monochromatic
#151B4C #222C7C #2F3DAC #4B59CE #7B85DB

Accessibility & contrast

On white

8.81
#2F3DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F3DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DAC
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DAC#FFFFFF#000000##FFFFFF
##2F3DAC1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3dac;
/* rgb */ color: rgb(47, 61, 172);
/* oklch */ color: oklch(42.4% 0.176 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a72c6',
    500: '#2f3dac',
    950: '#000000',
  },
}
SCSS
$custom: #2f3dac;
$custom-light: #7a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3dac",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 172
  },
  "hsl": {
    "h": 233.28,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42372,
    "c": 0.17603,
    "h": 271.1
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#2F3DAC
secondary
#C3BA74
accent
#CF47E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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