#2F5DAB#2F5DAB

#2F5DAB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.135 H 260.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2F5DAB
RGBrgb(47, 93, 171)
HSLhsl(218, 57%, 43%)
HSVhsv(218, 73%, 67%)
CMYKcmyk(72.5%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.20, 11.58, -46.41)
CIE-LCHlch(40.20, 47.84, 284.01°)
OKLaboklab(48.81% -0.0228 -0.1329)
OKLCHoklch(48.81% 0.135 260.3)
XYZxyz(12.4347, 11.3720, 40.0599)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DAB #AB7D2F
analogous
#2F9BAB #2F5DAB #3F2FAB
triadic
#2F5DAB #AB2F5D #5DAB2F
tetradic
#2F5DAB #AB2F9B #AB7D2F #2FAB3F
square
#2F5DAB #AB2F9B #AB7D2F #2FAB3F
split-complementary
#2F5DAB #AB3F2F #9BAB2F
monochromatic
#15294B #22437B #2F5DAB #4A7BCD #7A9EDA

Accessibility & contrast

On white

6.41
#2F5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F5DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DAB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DAB#FFFFFF#000000##FFFFFF
##2F5DAB1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5dab;
/* rgb */ color: rgb(47, 93, 171);
/* oklch */ color: oklch(48.8% 0.135 260.3);
Tailwind
colors: {
  custom: {
    50: '#778ac4',
    500: '#2f5dab',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dab;
$custom-light: #778ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dab",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 217.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.13486,
    "h": 260.3
  },
  "luminance": 0.11373
}

Semantic roles & 50–950 ramp

primary
#2F5DAB
secondary
#C3A573
accent
#A848E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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