#2F4BAB#2F4BAB

#2F4BAB is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.157 H 267.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2F4BAB
RGBrgb(47, 75, 171)
HSLhsl(226, 57%, 43%)
HSVhsv(226, 73%, 67%)
CMYKcmyk(72.5%, 56.1%, 0%, 32.9%)
CIE-LABlab(35.15, 23.44, -54.56)
CIE-LCHlch(35.15, 59.38, 293.25°)
OKLaboklab(44.97% -0.0072 -0.1572)
OKLCHoklch(44.97% 0.157 267.4)
XYZxyz(11.0365, 8.5756, 39.5938)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BAB #AB8F2F
analogous
#2F89AB #2F4BAB #512FAB
triadic
#2F4BAB #AB2F4B #4BAB2F
tetradic
#2F4BAB #AB2F89 #AB8F2F #2FAB51
square
#2F4BAB #AB2F89 #AB8F2F #2FAB51
split-complementary
#2F4BAB #AB512F #89AB2F
monochromatic
#15214B #22367B #2F4BAB #4A68CD #7A90DA

Accessibility & contrast

On white

7.73
#2F4BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F4BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BAB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BAB#FFFFFF#000000##FFFFFF
##2F4BAB1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4bab;
/* rgb */ color: rgb(47, 75, 171);
/* oklch */ color: oklch(45.0% 0.157 267.4);
Tailwind
colors: {
  custom: {
    50: '#787cc5',
    500: '#2f4bab',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bab;
$custom-light: #787cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bab",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 226.452,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4497,
    "c": 0.15735,
    "h": 267.4
  },
  "luminance": 0.08577
}

Semantic roles & 50–950 ramp

primary
#2F4BAB
secondary
#C3B173
accent
#BE48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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