#2F4BAF#2F4BAF

#2F4BAF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.163 H 267.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2F4BAF
RGBrgb(47, 75, 175)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(73.1%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.46, 24.94, -56.44)
CIE-LCHlch(35.46, 61.70, 293.84°)
OKLaboklab(45.3% -0.007 -0.1627)
OKLCHoklch(45.3% 0.163 267.5)
XYZxyz(11.4235, 8.7304, 41.6322)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BAF #AF932F
analogous
#2F8BAF #2F4BAF #532FAF
triadic
#2F4BAF #AF2F4B #4BAF2F
tetradic
#2F4BAF #AF2F8B #AF932F #2FAF53
square
#2F4BAF #AF2F8B #AF932F #2FAF53
split-complementary
#2F4BAF #AF532F #8BAF2F
monochromatic
#15224F #22367F #2F4BAF #4C69CF #7C91DC

Accessibility & contrast

On white

7.65
#2F4BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BAF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BAF#FFFFFF#000000##FFFFFF
##2F4BAF1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4baf;
/* rgb */ color: rgb(47, 75, 175);
/* oklch */ color: oklch(45.3% 0.163 267.5);
Tailwind
colors: {
  custom: {
    50: '#797cc8',
    500: '#2f4baf',
    950: '#000000',
  },
}
SCSS
$custom: #2f4baf;
$custom-light: #797cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4baf",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 226.875,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45296,
    "c": 0.16286,
    "h": 267.5
  },
  "luminance": 0.08732
}

Semantic roles & 50–950 ramp

primary
#2F4BAF
secondary
#C4B375
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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