#2F5FAA#2F5FAA

#2F5FAA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.131 H 259.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2F5FAA
RGBrgb(47, 95, 170)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 72%, 67%)
CMYKcmyk(72.4%, 44.1%, 0%, 33.3%)
CIE-LABlab(40.72, 9.91, -44.99)
CIE-LCHlch(40.72, 46.07, 282.42°)
OKLaboklab(49.19% -0.0248 -0.1287)
OKLCHoklch(49.19% 0.131 259.1)
XYZxyz(12.5176, 11.6897, 39.6190)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FAA #AA7A2F
analogous
#2F9DAA #2F5FAA #3C2FAA
triadic
#2F5FAA #AA2F5F #5FAA2F
tetradic
#2F5FAA #AA2F9D #AA7A2F #2FAA3C
square
#2F5FAA #AA2F9D #AA7A2F #2FAA3C
split-complementary
#2F5FAA #AA3C2F #9DAA2F
monochromatic
#14294A #22447A #2F5FAA #497DCD #799FDA

Accessibility & contrast

On white

6.29
#2F5FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2F5FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FAA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FAA#FFFFFF#000000##FFFFFF
##2F5FAA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#245BA8
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5faa;
/* rgb */ color: rgb(47, 95, 170);
/* oklch */ color: oklch(49.2% 0.131 259.1);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2f5faa',
    950: '#000000',
  },
}
SCSS
$custom: #2f5faa;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5faa",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 216.585,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49193,
    "c": 0.13107,
    "h": 259.1
  },
  "luminance": 0.11691
}

Semantic roles & 50–950 ramp

primary
#2F5FAA
secondary
#C2A372
accent
#A548E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2F5FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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