#2F4CAC#2F4CAC

#2F4CAC is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.157 H 267.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2F4CAC
RGBrgb(47, 76, 172)
HSLhsl(226, 57%, 43%)
HSVhsv(226, 73%, 67%)
CMYKcmyk(72.7%, 55.8%, 0%, 32.5%)
CIE-LABlab(35.50, 23.15, -54.59)
CIE-LCHlch(35.50, 59.30, 292.98°)
OKLaboklab(45.25% -0.008 -0.1573)
OKLCHoklch(45.25% 0.157 267.1)
XYZxyz(11.2005, 8.7506, 40.1205)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CAC #AC8F2F
analogous
#2F8AAC #2F4CAC #502FAC
triadic
#2F4CAC #AC2F4C #4CAC2F
tetradic
#2F4CAC #AC2F8A #AC8F2F #2FAC50
square
#2F4CAC #AC2F8A #AC8F2F #2FAC50
split-complementary
#2F4CAC #AC502F #8AAC2F
monochromatic
#15224C #22377C #2F4CAC #4B69CE #7B91DB

Accessibility & contrast

On white

7.64
#2F4CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4CAC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CAC#FFFFFF#000000##FFFFFF
##2F4CAC1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4cac;
/* rgb */ color: rgb(47, 76, 172);
/* oklch */ color: oklch(45.3% 0.157 267.1);
Tailwind
colors: {
  custom: {
    50: '#787dc5',
    500: '#2f4cac',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cac;
$custom-light: #787dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cac",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 226.08,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45254,
    "c": 0.15747,
    "h": 267.1
  },
  "luminance": 0.08752
}

Semantic roles & 50–950 ramp

primary
#2F4CAC
secondary
#C3B174
accent
#BD47E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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