#2F3FAA#2F3FAA

#2F3FAA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.171 H 270.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2F3FAA
RGBrgb(47, 63, 170)
HSLhsl(232, 57%, 43%)
HSVhsv(232, 72%, 67%)
CMYKcmyk(72.4%, 62.9%, 0%, 33.3%)
CIE-LABlab(31.94, 30.97, -59.19)
CIE-LCHlch(31.94, 66.80, 297.62°)
OKLaboklab(42.56% 0.0019 -0.1709)
OKLCHoklch(42.56% 0.171 270.6)
XYZxyz(10.2030, 7.0606, 38.8475)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FAA #AA9A2F
analogous
#2F7DAA #2F3FAA #5C2FAA
triadic
#2F3FAA #AA2F3F #3FAA2F
tetradic
#2F3FAA #AA2F7D #AA9A2F #2FAA5C
square
#2F3FAA #AA2F7D #AA9A2F #2FAA5C
split-complementary
#2F3FAA #AA5C2F #7DAA2F
monochromatic
#141B4A #222D7A #2F3FAA #495ACD #7986DA

Accessibility & contrast

On white

8.71
#2F3FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F3FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FAA
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FAA#FFFFFF#000000##FFFFFF
##2F3FAA1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3faa;
/* rgb */ color: rgb(47, 63, 170);
/* oklch */ color: oklch(42.6% 0.171 270.6);
Tailwind
colors: {
  custom: {
    50: '#7974c4',
    500: '#2f3faa',
    950: '#000000',
  },
}
SCSS
$custom: #2f3faa;
$custom-light: #7974c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3faa",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 170
  },
  "hsl": {
    "h": 232.195,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42555,
    "c": 0.17094,
    "h": 270.6
  },
  "luminance": 0.07062
}

Semantic roles & 50–950 ramp

primary
#2F3FAA
secondary
#C2B872
accent
#CC48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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