#2F4BAA#2F4BAA

#2F4BAA is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.156 H 267.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2F4BAA
RGBrgb(47, 75, 170)
HSLhsl(226, 57%, 43%)
HSVhsv(226, 72%, 67%)
CMYKcmyk(72.4%, 55.9%, 0%, 33.3%)
CIE-LABlab(35.08, 23.06, -54.08)
CIE-LCHlch(35.08, 58.80, 293.10°)
OKLaboklab(44.89% -0.0073 -0.1558)
OKLCHoklch(44.89% 0.156 267.3)
XYZxyz(10.9415, 8.5376, 39.0937)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BAA #AA8E2F
analogous
#2F89AA #2F4BAA #502FAA
triadic
#2F4BAA #AA2F4B #4BAA2F
tetradic
#2F4BAA #AA2F89 #AA8E2F #2FAA50
square
#2F4BAA #AA2F89 #AA8E2F #2FAA50
split-complementary
#2F4BAA #AA502F #89AA2F
monochromatic
#14214A #22367A #2F4BAA #4967CD #798FDA

Accessibility & contrast

On white

7.76
#2F4BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F4BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BAA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BAA#FFFFFF#000000##FFFFFF
##2F4BAA1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4baa;
/* rgb */ color: rgb(47, 75, 170);
/* oklch */ color: oklch(44.9% 0.156 267.3);
Tailwind
colors: {
  custom: {
    50: '#787cc4',
    500: '#2f4baa',
    950: '#000000',
  },
}
SCSS
$custom: #2f4baa;
$custom-light: #787cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4baa",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 170
  },
  "hsl": {
    "h": 226.341,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44889,
    "c": 0.15596,
    "h": 267.3
  },
  "luminance": 0.08539
}

Semantic roles & 50–950 ramp

primary
#2F4BAA
secondary
#C2B072
accent
#BD48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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