#2F3AB4#2F3AB4

#2F3AB4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.190 H 271.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2F3AB4
RGBrgb(47, 58, 180)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(73.9%, 67.8%, 0%, 29.4%)
CIE-LABlab(31.63, 37.75, -65.66)
CIE-LCHlch(31.63, 75.74, 299.90°)
OKLaboklab(42.6% 0.0045 -0.1899)
OKLCHoklch(42.6% 0.19 271.4)
XYZxyz(10.9208, 6.9246, 43.9322)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB4 #B4A92F
analogous
#2F7CB4 #2F3AB4 #672FB4
triadic
#2F3AB4 #B42F3A #3AB42F
tetradic
#2F3AB4 #B42F7C #B4A92F #2FB467
square
#2F3AB4 #B42F7C #B4A92F #2FB467
split-complementary
#2F3AB4 #B4672F #7CB42F
monochromatic
#161B53 #222A83 #2F3AB4 #4F5AD1 #8087DE

Accessibility & contrast

On white

8.80
#2F3AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F3AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AB4
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AB4#FFFFFF#000000##FFFFFF
##2F3AB41.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ab4;
/* rgb */ color: rgb(47, 58, 180);
/* oklch */ color: oklch(42.6% 0.190 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#2f3ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab4;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab4",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 235.038,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.18996,
    "h": 271.4
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#2F3AB4
secondary
#C7C078
accent
#D546E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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