#2F5DA2#2F5DA2

#2F5DA2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.122 H 258.4°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2F5DA2
RGBrgb(47, 93, 162)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 64%)
CMYKcmyk(71%, 42.6%, 0%, 36.5%)
CIE-LABlab(39.65, 8.19, -41.96)
CIE-LCHlch(39.65, 42.75, 281.05°)
OKLaboklab(48.21% -0.0246 -0.1198)
OKLCHoklch(48.21% 0.122 258.4)
XYZxyz(11.6059, 11.0405, 35.6948)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DA2 #A2742F
analogous
#2F96A2 #2F5DA2 #3A2FA2
triadic
#2F5DA2 #A22F5D #5DA22F
tetradic
#2F5DA2 #A22F96 #A2742F #2FA23A
square
#2F5DA2 #A22F96 #A2742F #2FA23A
split-complementary
#2F5DA2 #A23A2F #96A22F
monochromatic
#132743 #214273 #2F5DA2 #457AC9 #759CD7

Accessibility & contrast

On white

6.55
#2F5DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2F5DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DA2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DA2#FFFFFF#000000##FFFFFF
##2F5DA21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#2958A1
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5da2;
/* rgb */ color: rgb(47, 93, 162);
/* oklch */ color: oklch(48.2% 0.122 258.4);
Tailwind
colors: {
  custom: {
    50: '#768abe',
    500: '#2f5da2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5da2;
$custom-light: #768abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5da2",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 216,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48209,
    "c": 0.12231,
    "h": 258.4
  },
  "luminance": 0.11042
}

Semantic roles & 50–950 ramp

primary
#2F5DA2
secondary
#BF9E6E
accent
#A349DE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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