#2F5CA1#2F5CA1

#2F5CA1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.122 H 258.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA1
RGBrgb(47, 92, 161)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 63%)
CMYKcmyk(70.8%, 42.9%, 0%, 36.9%)
CIE-LABlab(39.29, 8.46, -41.93)
CIE-LCHlch(39.29, 42.78, 281.41°)
OKLaboklab(47.92% -0.0238 -0.1197)
OKLCHoklch(47.92% 0.122 258.8)
XYZxyz(11.4301, 10.8306, 35.1994)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA1 #A1742F
analogous
#2F95A1 #2F5CA1 #3B2FA1
triadic
#2F5CA1 #A12F5C #5CA12F
tetradic
#2F5CA1 #A12F95 #A1742F #2FA13B
square
#2F5CA1 #A12F95 #A1742F #2FA13B
split-complementary
#2F5CA1 #A13B2F #95A12F
monochromatic
#132642 #214172 #2F5CA1 #4579C9 #749BD6

Accessibility & contrast

On white

6.63
#2F5CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2F5CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA1
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA1#FFFFFF#000000##FFFFFF
##2F5CA11.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B62A4
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ca1;
/* rgb */ color: rgb(47, 92, 161);
/* oklch */ color: oklch(47.9% 0.122 258.8);
Tailwind
colors: {
  custom: {
    50: '#7589bd',
    500: '#2f5ca1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca1;
$custom-light: #7589bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca1",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 161
  },
  "hsl": {
    "h": 216.316,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47915,
    "c": 0.12209,
    "h": 258.8
  },
  "luminance": 0.10832
}

Semantic roles & 50–950 ramp

primary
#2F5CA1
secondary
#BE9E6E
accent
#A44ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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