#2F5FB2#2F5FB2

#2F5FB2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.142 H 260.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB2
RGBrgb(47, 95, 178)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 74%, 70%)
CMYKcmyk(73.6%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.22, 12.93, -48.90)
CIE-LCHlch(41.22, 50.58, 284.81°)
OKLaboklab(49.74% -0.0234 -0.1402)
OKLCHoklch(49.74% 0.142 260.5)
XYZxyz(13.2975, 12.0017, 43.7266)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB2 #B2822F
analogous
#2FA1B2 #2F5FB2 #412FB2
triadic
#2F5FB2 #B22F5F #5FB22F
tetradic
#2F5FB2 #B22FA1 #B2822F #2FB241
square
#2F5FB2 #B22FA1 #B2822F #2FB241
split-complementary
#2F5FB2 #B2412F #A1B22F
monochromatic
#152B51 #224582 #2F5FB2 #4E7ED0 #7EA1DD

Accessibility & contrast

On white

6.18
#2F5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB2#FFFFFF#000000##FFFFFF
##2F5FB21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#155CB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5fb2;
/* rgb */ color: rgb(47, 95, 178);
/* oklch */ color: oklch(49.7% 0.142 260.5);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#2f5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb2;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb2",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 218.015,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4974,
    "c": 0.14213,
    "h": 260.5
  },
  "luminance": 0.12003
}

Semantic roles & 50–950 ramp

primary
#2F5FB2
secondary
#C6A977
accent
#A946E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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