#2F5BAD#2F5BAD

#2F5BAD is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.140 H 261.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2F5BAD
RGBrgb(47, 91, 173)
HSLhsl(219, 57%, 43%)
HSVhsv(219, 73%, 68%)
CMYKcmyk(72.8%, 47.4%, 0%, 32.2%)
CIE-LABlab(39.75, 13.64, -48.32)
CIE-LCHlch(39.75, 50.20, 285.77°)
OKLaboklab(48.51% -0.0206 -0.1385)
OKLCHoklch(48.51% 0.14 261.5)
XYZxyz(12.4535, 11.1023, 41.0137)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BAD #AD812F
analogous
#2F9AAD #2F5BAD #422FAD
triadic
#2F5BAD #AD2F5B #5BAD2F
tetradic
#2F5BAD #AD2F9A #AD812F #2FAD42
square
#2F5BAD #AD2F9A #AD812F #2FAD42
split-complementary
#2F5BAD #AD422F #9AAD2F
monochromatic
#15284D #22427D #2F5BAD #4B79CE #7B9DDB

Accessibility & contrast

On white

6.52
#2F5BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F5BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BAD
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BAD#FFFFFF#000000##FFFFFF
##2F5BAD1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F64B0
Deuteranopia (green-blind)
#1058AB
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5bad;
/* rgb */ color: rgb(47, 91, 173);
/* oklch */ color: oklch(48.5% 0.140 261.5);
Tailwind
colors: {
  custom: {
    50: '#7888c6',
    500: '#2f5bad',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bad;
$custom-light: #7888c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bad",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 173
  },
  "hsl": {
    "h": 219.048,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4851,
    "c": 0.14007,
    "h": 261.5
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#2F5BAD
secondary
#C4A874
accent
#AB47E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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