#2F5AAA#2F5AAA

#2F5AAA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.137 H 261.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2F5AAA
RGBrgb(47, 90, 170)
HSLhsl(219, 57%, 43%)
HSVhsv(219, 72%, 67%)
CMYKcmyk(72.4%, 47.1%, 0%, 33.3%)
CIE-LABlab(39.27, 13.16, -47.31)
CIE-LCHlch(39.27, 49.11, 285.54°)
OKLaboklab(48.08% -0.0202 -0.1356)
OKLCHoklch(48.08% 0.137 261.5)
XYZxyz(12.0816, 10.8177, 39.4737)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AAA #AA7F2F
analogous
#2F98AA #2F5AAA #412FAA
triadic
#2F5AAA #AA2F5A #5AAA2F
tetradic
#2F5AAA #AA2F98 #AA7F2F #2FAA41
square
#2F5AAA #AA2F98 #AA7F2F #2FAA41
split-complementary
#2F5AAA #AA412F #98AA2F
monochromatic
#14274A #22417A #2F5AAA #4977CD #799BDA

Accessibility & contrast

On white

6.64
#2F5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2F5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AAA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AAA#FFFFFF#000000##FFFFFF
##2F5AAA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#1457A8
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aaa;
/* rgb */ color: rgb(47, 90, 170);
/* oklch */ color: oklch(48.1% 0.137 261.5);
Tailwind
colors: {
  custom: {
    50: '#7788c4',
    500: '#2f5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aaa;
$custom-light: #7788c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aaa",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 219.024,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.13711,
    "h": 261.5
  },
  "luminance": 0.10819
}

Semantic roles & 50–950 ramp

primary
#2F5AAA
secondary
#C2A672
accent
#AB48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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