#2F3BA7#2F3BA7

#2F3BA7 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.172 H 271.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F3BA7
RGBrgb(47, 59, 167)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(71.9%, 64.7%, 0%, 34.5%)
CIE-LABlab(30.69, 32.47, -59.44)
CIE-LCHlch(30.69, 67.73, 298.65°)
OKLaboklab(41.55% 0.0049 -0.1717)
OKLCHoklch(41.55% 0.172 271.6)
XYZxyz(9.7089, 6.5213, 37.2988)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BA7 #A79B2F
analogous
#2F77A7 #2F3BA7 #5F2FA7
triadic
#2F3BA7 #A72F3B #3BA72F
tetradic
#2F3BA7 #A72F77 #A79B2F #2FA75F
square
#2F3BA7 #A72F77 #A79B2F #2FA75F
split-complementary
#2F3BA7 #A75F2F #77A72F
monochromatic
#141947 #222A77 #2F3BA7 #4855CB #7881D9

Accessibility & contrast

On white

9.11
#2F3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F3BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BA7
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BA7#FFFFFF#000000##FFFFFF
##2F3BA71.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3ba7;
/* rgb */ color: rgb(47, 59, 167);
/* oklch */ color: oklch(41.6% 0.172 271.6);
Tailwind
colors: {
  custom: {
    50: '#7971c2',
    500: '#2f3ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ba7;
$custom-light: #7971c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ba7",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 234,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41553,
    "c": 0.17177,
    "h": 271.6
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#2F3BA7
secondary
#C1B971
accent
#D048DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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