#2F3AA8#2F3AA8

#2F3AA8 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.174 H 271.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA8
RGBrgb(47, 58, 168)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 72%, 66%)
CMYKcmyk(72%, 65.5%, 0%, 34.1%)
CIE-LABlab(30.54, 33.48, -60.29)
CIE-LCHlch(30.54, 68.96, 299.04°)
OKLaboklab(41.47% 0.0055 -0.1742)
OKLCHoklch(41.47% 0.174 271.8)
XYZxyz(9.7508, 6.4566, 37.7706)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA8 #A89D2F
analogous
#2F77A8 #2F3AA8 #602FA8
triadic
#2F3AA8 #A82F3A #3AA82F
tetradic
#2F3AA8 #A82F77 #A89D2F #2FA860
square
#2F3AA8 #A82F77 #A89D2F #2FA860
split-complementary
#2F3AA8 #A8602F #77A82F
monochromatic
#141948 #222978 #2F3AA8 #4854CC #7881D9

Accessibility & contrast

On white

9.16
#2F3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F3AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA8
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA8#FFFFFF#000000##FFFFFF
##2F3AA81.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3aa8;
/* rgb */ color: rgb(47, 58, 168);
/* oklch */ color: oklch(41.5% 0.174 271.8);
Tailwind
colors: {
  custom: {
    50: '#7970c3',
    500: '#2f3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa8;
$custom-light: #7970c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa8",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 234.545,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.1743,
    "h": 271.8
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#2F3AA8
secondary
#C1BA71
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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