#2F51AF#2F51AF

#2F51AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.155 H 265.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2F51AF
RGBrgb(47, 81, 175)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 73%, 69%)
CMYKcmyk(73.1%, 53.7%, 0%, 31.4%)
CIE-LABlab(37.08, 20.97, -53.80)
CIE-LCHlch(37.08, 57.75, 291.30°)
OKLaboklab(46.52% -0.0118 -0.1549)
OKLCHoklch(46.52% 0.155 265.6)
XYZxyz(11.8499, 9.5831, 41.7743)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51AF #AF8D2F
analogous
#2F91AF #2F51AF #4D2FAF
triadic
#2F51AF #AF2F51 #51AF2F
tetradic
#2F51AF #AF2F91 #AF8D2F #2FAF4D
square
#2F51AF #AF2F91 #AF8D2F #2FAF4D
split-complementary
#2F51AF #AF4D2F #91AF2F
monochromatic
#15244F #223B7F #2F51AF #4C6FCF #7C96DC

Accessibility & contrast

On white

7.20
#2F51AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F51AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51AF
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51AF#FFFFFF#000000##FFFFFF
##2F51AF1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f51af;
/* rgb */ color: rgb(47, 81, 175);
/* oklch */ color: oklch(46.5% 0.155 265.6);
Tailwind
colors: {
  custom: {
    50: '#7981c8',
    500: '#2f51af',
    950: '#000000',
  },
}
SCSS
$custom: #2f51af;
$custom-light: #7981c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51af",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 224.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46519,
    "c": 0.15532,
    "h": 265.6
  },
  "luminance": 0.09584
}

Semantic roles & 50–950 ramp

primary
#2F51AF
secondary
#C4AF75
accent
#B847E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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