#2F5FAB#2F5FAB

#2F5FAB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.132 H 259.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2F5FAB
RGBrgb(47, 95, 171)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 73%, 67%)
CMYKcmyk(72.5%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.78, 10.29, -45.49)
CIE-LCHlch(40.78, 46.63, 282.75°)
OKLaboklab(49.26% -0.0246 -0.1301)
OKLCHoklch(49.26% 0.132 259.3)
XYZxyz(12.6125, 11.7277, 40.1191)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FAB #AB7B2F
analogous
#2F9DAB #2F5FAB #3D2FAB
triadic
#2F5FAB #AB2F5F #5FAB2F
tetradic
#2F5FAB #AB2F9D #AB7B2F #2FAB3D
square
#2F5FAB #AB2F9D #AB7B2F #2FAB3D
split-complementary
#2F5FAB #AB3D2F #9DAB2F
monochromatic
#152A4B #22447B #2F5FAB #4A7DCD #7A9FDA

Accessibility & contrast

On white

6.28
#2F5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FAB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FAB#FFFFFF#000000##FFFFFF
##2F5FAB1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#225BA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5fab;
/* rgb */ color: rgb(47, 95, 171);
/* oklch */ color: oklch(49.3% 0.132 259.3);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2f5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fab;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fab",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 216.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49261,
    "c": 0.13246,
    "h": 259.3
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#2F5FAB
secondary
#C3A473
accent
#A548E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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