#2F4FAF#2F4FAF

#2F4FAF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.158 H 266.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2F4FAF
RGBrgb(47, 79, 175)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 73%, 69%)
CMYKcmyk(73.1%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.54, 22.30, -54.69)
CIE-LCHlch(36.54, 59.06, 292.18°)
OKLaboklab(46.11% -0.0102 -0.1575)
OKLCHoklch(46.11% 0.158 266.3)
XYZxyz(11.7034, 9.2902, 41.7255)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FAF #AF8F2F
analogous
#2F8FAF #2F4FAF #4F2FAF
triadic
#2F4FAF #AF2F4F #4FAF2F
tetradic
#2F4FAF #AF2F8F #AF8F2F #2FAF4F
square
#2F4FAF #AF2F8F #AF8F2F #2FAF4F
split-complementary
#2F4FAF #AF4F2F #8FAF2F
monochromatic
#15234F #22397F #2F4FAF #4C6DCF #7C94DC

Accessibility & contrast

On white

7.35
#2F4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2F4FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FAF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FAF#FFFFFF#000000##FFFFFF
##2F4FAF1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4faf;
/* rgb */ color: rgb(47, 79, 175);
/* oklch */ color: oklch(46.1% 0.158 266.3);
Tailwind
colors: {
  custom: {
    50: '#797fc8',
    500: '#2f4faf',
    950: '#000000',
  },
}
SCSS
$custom: #2f4faf;
$custom-light: #797fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4faf",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 225,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46106,
    "c": 0.15784,
    "h": 266.3
  },
  "luminance": 0.09291
}

Semantic roles & 50–950 ramp

primary
#2F4FAF
secondary
#C4B175
accent
#BA47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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