#2F4792#2F4792

#2F4792 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.127 H 267.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2F4792
RGBrgb(47, 71, 146)
HSLhsl(225, 51%, 38%)
HSVhsv(225, 68%, 57%)
CMYKcmyk(67.8%, 51.4%, 0%, 42.7%)
CIE-LABlab(32.23, 16.71, -44.22)
CIE-LCHlch(32.23, 47.27, 290.70°)
OKLaboklab(42.18% -0.0058 -0.1268)
OKLCHoklch(42.18% 0.127 267.4)
XYZxyz(8.6120, 7.1853, 28.1216)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4792 #927A2F
analogous
#2F7892 #2F4792 #492F92
triadic
#2F4792 #922F47 #47922F
tetradic
#2F4792 #922F78 #927A2F #2F9249
square
#2F4792 #922F78 #927A2F #2F9249
split-complementary
#2F4792 #92492F #78922F
monochromatic
#111A35 #203064 #2F4792 #3E5EC0 #6C84D0

Accessibility & contrast

On white

8.62
#2F4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2F4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4792
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4792#FFFFFF#000000##FFFFFF
##2F47921.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5195
Deuteranopia (green-blind)
#004890
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4792;
/* rgb */ color: rgb(47, 71, 146);
/* oklch */ color: oklch(42.2% 0.127 267.4);
Tailwind
colors: {
  custom: {
    50: '#7379b2',
    500: '#2f4792',
    950: '#000000',
  },
}
SCSS
$custom: #2f4792;
$custom-light: #7379b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4792",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 225.455,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42179,
    "c": 0.12696,
    "h": 267.4
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#2F4792
secondary
#B7A366
accent
#B84DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4792

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

Preview Lab → · Contrast checker → · Palette generator →

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