#2F4FAB#2F4FAB

#2F4FAB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.152 H 266.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2F4FAB
RGBrgb(47, 79, 171)
HSLhsl(225, 57%, 43%)
HSVhsv(225, 73%, 67%)
CMYKcmyk(72.5%, 53.8%, 0%, 32.9%)
CIE-LABlab(36.24, 20.79, -52.79)
CIE-LCHlch(36.24, 56.74, 291.49°)
OKLaboklab(45.79% -0.0105 -0.1519)
OKLCHoklch(45.79% 0.152 266)
XYZxyz(11.3164, 9.1354, 39.6871)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FAB #AB8B2F
analogous
#2F8DAB #2F4FAB #4D2FAB
triadic
#2F4FAB #AB2F4F #4FAB2F
tetradic
#2F4FAB #AB2F8D #AB8B2F #2FAB4D
square
#2F4FAB #AB2F8D #AB8B2F #2FAB4D
split-complementary
#2F4FAB #AB4D2F #8DAB2F
monochromatic
#15234B #22397B #2F4FAB #4A6CCD #7A93DA

Accessibility & contrast

On white

7.43
#2F4FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2F4FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FAB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FAB#FFFFFF#000000##FFFFFF
##2F4FAB1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4fab;
/* rgb */ color: rgb(47, 79, 171);
/* oklch */ color: oklch(45.8% 0.152 266.0);
Tailwind
colors: {
  custom: {
    50: '#787fc5',
    500: '#2f4fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fab;
$custom-light: #787fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fab",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 224.516,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45792,
    "c": 0.15228,
    "h": 266
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

primary
#2F4FAB
secondary
#C3AE73
accent
#B948E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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