#2F4CAB#2F4CAB

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

Color values

HEX#2F4CAB
RGBrgb(47, 76, 171)
HSLhsl(226, 57%, 43%)
HSVhsv(226, 73%, 67%)
CMYKcmyk(72.5%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.42, 22.78, -54.12)
CIE-LCHlch(35.42, 58.72, 292.83°)
OKLaboklab(45.17% -0.008 -0.1559)
OKLCHoklch(45.17% 0.156 267.1)
XYZxyz(11.1049, 8.7123, 39.6166)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CAB #AB8E2F
analogous
#2F8AAB #2F4CAB #502FAB
triadic
#2F4CAB #AB2F4C #4CAB2F
tetradic
#2F4CAB #AB2F8A #AB8E2F #2FAB50
square
#2F4CAB #AB2F8A #AB8E2F #2FAB50
split-complementary
#2F4CAB #AB502F #8AAB2F
monochromatic
#15214B #22377B #2F4CAB #4A69CD #7A91DA

Accessibility & contrast

On white

7.66
#2F4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4CAB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CAB#FFFFFF#000000##FFFFFF
##2F4CAB1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4cab;
/* rgb */ color: rgb(47, 76, 171);
/* oklch */ color: oklch(45.2% 0.156 267.1);
Tailwind
colors: {
  custom: {
    50: '#787dc5',
    500: '#2f4cab',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cab;
$custom-light: #787dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cab",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 225.968,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45174,
    "c": 0.15608,
    "h": 267.1
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#2F4CAB
secondary
#C3B073
accent
#BC48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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