#2F3AA5#2F3AA5

#2F3AA5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.170 H 271.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA5
RGBrgb(47, 58, 165)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(71.5%, 64.8%, 0%, 35.3%)
CIE-LABlab(30.27, 32.40, -58.92)
CIE-LCHlch(30.27, 67.24, 298.80°)
OKLaboklab(41.19% 0.0057 -0.1702)
OKLCHoklch(41.19% 0.17 271.9)
XYZxyz(9.4746, 6.3461, 36.3156)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA5 #A59A2F
analogous
#2F75A5 #2F3AA5 #5F2FA5
triadic
#2F3AA5 #A52F3A #3AA52F
tetradic
#2F3AA5 #A52F75 #A59A2F #2FA55F
square
#2F3AA5 #A52F75 #A59A2F #2FA55F
split-complementary
#2F3AA5 #A55F2F #75A52F
monochromatic
#141946 #212975 #2F3AA5 #4753CB #767FD8

Accessibility & contrast

On white

9.25
#2F3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA5
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA5#FFFFFF#000000##FFFFFF
##2F3AA51.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3aa5;
/* rgb */ color: rgb(47, 58, 165);
/* oklch */ color: oklch(41.2% 0.170 271.9);
Tailwind
colors: {
  custom: {
    50: '#7870c1',
    500: '#2f3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa5;
$custom-light: #7870c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa5",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 234.407,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41189,
    "c": 0.1703,
    "h": 271.9
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

primary
#2F3AA5
secondary
#C0B970
accent
#D149DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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