#2F4EAC#2F4EAC

#2F4EAC is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.155 H 266.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2F4EAC
RGBrgb(47, 78, 172)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 67%)
CMYKcmyk(72.7%, 54.7%, 0%, 32.5%)
CIE-LABlab(36.04, 21.83, -53.71)
CIE-LCHlch(36.04, 57.98, 292.12°)
OKLaboklab(45.66% -0.0096 -0.1546)
OKLCHoklch(45.66% 0.155 266.5)
XYZxyz(11.3405, 9.0305, 40.1671)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EAC #AC8D2F
analogous
#2F8CAC #2F4EAC #4E2FAC
triadic
#2F4EAC #AC2F4E #4EAC2F
tetradic
#2F4EAC #AC2F8C #AC8D2F #2FAC4E
square
#2F4EAC #AC2F8C #AC8D2F #2FAC4E
split-complementary
#2F4EAC #AC4E2F #8CAC2F
monochromatic
#15224C #22387C #2F4EAC #4B6BCE #7B92DB

Accessibility & contrast

On white

7.48
#2F4EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F4EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EAC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EAC#FFFFFF#000000##FFFFFF
##2F4EAC1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4eac;
/* rgb */ color: rgb(47, 78, 172);
/* oklch */ color: oklch(45.7% 0.155 266.5);
Tailwind
colors: {
  custom: {
    50: '#787fc5',
    500: '#2f4eac',
    950: '#000000',
  },
}
SCSS
$custom: #2f4eac;
$custom-light: #787fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4eac",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 225.12,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45663,
    "c": 0.15494,
    "h": 266.5
  },
  "luminance": 0.09032
}

Semantic roles & 50–950 ramp

primary
#2F4EAC
secondary
#C3AF74
accent
#BA47E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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