#2F4DAF#2F4DAF

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

Color values

HEX#2F4DAF
RGBrgb(47, 77, 175)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(73.1%, 56%, 0%, 31.4%)
CIE-LABlab(36.00, 23.62, -55.57)
CIE-LCHlch(36.00, 60.38, 293.03°)
OKLaboklab(45.7% -0.0086 -0.1601)
OKLCHoklch(45.7% 0.16 266.9)
XYZxyz(11.5613, 9.0060, 41.6782)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DAF #AF912F
analogous
#2F8DAF #2F4DAF #512FAF
triadic
#2F4DAF #AF2F4D #4DAF2F
tetradic
#2F4DAF #AF2F8D #AF912F #2FAF51
square
#2F4DAF #AF2F8D #AF912F #2FAF51
split-complementary
#2F4DAF #AF512F #8DAF2F
monochromatic
#15234F #22387F #2F4DAF #4C6BCF #7C93DC

Accessibility & contrast

On white

7.50
#2F4DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F4DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4DAF
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DAF#FFFFFF#000000##FFFFFF
##2F4DAF1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4daf;
/* rgb */ color: rgb(47, 77, 175);
/* oklch */ color: oklch(45.7% 0.160 266.9);
Tailwind
colors: {
  custom: {
    50: '#797ec8',
    500: '#2f4daf',
    950: '#000000',
  },
}
SCSS
$custom: #2f4daf;
$custom-light: #797ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4daf",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 225.938,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45699,
    "c": 0.16035,
    "h": 266.9
  },
  "luminance": 0.09007
}

Semantic roles & 50–950 ramp

primary
#2F4DAF
secondary
#C4B275
accent
#BD47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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