#2F3CAA#2F3CAA

#2F3CAA is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.175 H 271.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2F3CAA
RGBrgb(47, 60, 170)
HSLhsl(234, 57%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(72.4%, 64.7%, 0%, 33.3%)
CIE-LABlab(31.20, 32.91, -60.40)
CIE-LCHlch(31.20, 68.79, 298.59°)
OKLaboklab(42.01% 0.004 -0.1745)
OKLCHoklch(42.01% 0.175 271.3)
XYZxyz(10.0414, 6.7373, 38.7937)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CAA #AA9D2F
analogous
#2F79AA #2F3CAA #602FAA
triadic
#2F3CAA #AA2F3C #3CAA2F
tetradic
#2F3CAA #AA2F79 #AA9D2F #2FAA60
square
#2F3CAA #AA2F79 #AA9D2F #2FAA60
split-complementary
#2F3CAA #AA602F #79AA2F
monochromatic
#141A4A #222B7A #2F3CAA #4957CD #7984DA

Accessibility & contrast

On white

8.95
#2F3CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CAA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CAA#FFFFFF#000000##FFFFFF
##2F3CAA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3caa;
/* rgb */ color: rgb(47, 60, 170);
/* oklch */ color: oklch(42.0% 0.175 271.3);
Tailwind
colors: {
  custom: {
    50: '#7972c4',
    500: '#2f3caa',
    950: '#000000',
  },
}
SCSS
$custom: #2f3caa;
$custom-light: #7972c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3caa",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 233.659,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42008,
    "c": 0.17457,
    "h": 271.3
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#2F3CAA
secondary
#C2BA72
accent
#D048E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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