#2F4BAE#2F4BAE

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

Color values

HEX#2F4BAE
RGBrgb(47, 75, 174)
HSLhsl(227, 57%, 43%)
HSVhsv(227, 73%, 68%)
CMYKcmyk(73%, 56.9%, 0%, 31.8%)
CIE-LABlab(35.38, 24.57, -55.97)
CIE-LCHlch(35.38, 61.12, 293.70°)
OKLaboklab(45.21% -0.0071 -0.1613)
OKLCHoklch(45.21% 0.161 267.5)
XYZxyz(11.3257, 8.6913, 41.1169)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BAE #AE922F
analogous
#2F8AAE #2F4BAE #532FAE
triadic
#2F4BAE #AE2F4B #4BAE2F
tetradic
#2F4BAE #AE2F8A #AE922F #2FAE53
square
#2F4BAE #AE2F8A #AE922F #2FAE53
split-complementary
#2F4BAE #AE532F #8AAE2F
monochromatic
#15214E #22367E #2F4BAE #4C69CF #7C91DC

Accessibility & contrast

On white

7.67
#2F4BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F4BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BAE
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BAE#FFFFFF#000000##FFFFFF
##2F4BAE1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4bae;
/* rgb */ color: rgb(47, 75, 174);
/* oklch */ color: oklch(45.2% 0.161 267.5);
Tailwind
colors: {
  custom: {
    50: '#797cc7',
    500: '#2f4bae',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bae;
$custom-light: #797cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bae",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 174
  },
  "hsl": {
    "h": 226.772,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45214,
    "c": 0.16148,
    "h": 267.5
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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