#2F3BAE#2F3BAE

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

Color values

HEX#2F3BAE
RGBrgb(47, 59, 174)
HSLhsl(234, 57%, 43%)
HSVhsv(234, 73%, 68%)
CMYKcmyk(73%, 66.1%, 0%, 31.8%)
CIE-LABlab(31.32, 34.99, -62.61)
CIE-LCHlch(31.32, 71.72, 299.20°)
OKLaboklab(42.2% 0.0044 -0.181)
OKLCHoklch(42.2% 0.181 271.4)
XYZxyz(10.3736, 6.7872, 40.7995)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BAE #AEA22F
analogous
#2F7AAE #2F3BAE #622FAE
triadic
#2F3BAE #AE2F3B #3BAE2F
tetradic
#2F3BAE #AE2F7A #AEA22F #2FAE62
square
#2F3BAE #AE2F7A #AEA22F #2FAE62
split-complementary
#2F3BAE #AE622F #7AAE2F
monochromatic
#151A4E #222B7E #2F3BAE #4C58CF #7C85DC

Accessibility & contrast

On white

8.91
#2F3BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3BAE
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BAE#FFFFFF#000000##FFFFFF
##2F3BAE1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3bae;
/* rgb */ color: rgb(47, 59, 174);
/* oklch */ color: oklch(42.2% 0.181 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a71c7',
    500: '#2f3bae',
    950: '#000000',
  },
}
SCSS
$custom: #2f3bae;
$custom-light: #7a71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3bae",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 234.331,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.18103,
    "h": 271.4
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#2F3BAE
secondary
#C4BD75
accent
#D247E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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