#2F3AA4#2F3AA4

#2F3AA4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.169 H 272.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA4
RGBrgb(47, 58, 164)
HSLhsl(234, 55%, 41%)
HSVhsv(234, 71%, 64%)
CMYKcmyk(71.3%, 64.6%, 0%, 35.7%)
CIE-LABlab(30.18, 32.03, -58.47)
CIE-LCHlch(30.18, 66.67, 298.72°)
OKLaboklab(41.1% 0.0058 -0.1689)
OKLCHoklch(41.1% 0.169 272)
XYZxyz(9.3839, 6.3099, 35.8381)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA4 #A4992F
analogous
#2F75A4 #2F3AA4 #5F2FA4
triadic
#2F3AA4 #A42F3A #3AA42F
tetradic
#2F3AA4 #A42F75 #A4992F #2FA45F
square
#2F3AA4 #A42F75 #A4992F #2FA45F
split-complementary
#2F3AA4 #A45F2F #75A42F
monochromatic
#141845 #212974 #2F3AA4 #4653CA #767FD8

Accessibility & contrast

On white

9.28
#2F3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F3AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA4#FFFFFF#000000##FFFFFF
##2F3AA41.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3aa4;
/* rgb */ color: rgb(47, 58, 164);
/* oklch */ color: oklch(41.1% 0.169 272.0);
Tailwind
colors: {
  custom: {
    50: '#7870c0',
    500: '#2f3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa4;
$custom-light: #7870c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa4",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 234.359,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41097,
    "c": 0.16896,
    "h": 272
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#2F3AA4
secondary
#C0B86F
accent
#D149DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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