#2F46A7#2F46A7

#2F46A7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.6% C 0.158 H 268.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2F46A7
RGBrgb(47, 70, 167)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 65%)
CMYKcmyk(71.9%, 58.1%, 0%, 34.5%)
CIE-LABlab(33.51, 25.26, -54.84)
CIE-LCHlch(33.51, 60.38, 294.73°)
OKLaboklab(43.64% -0.0034 -0.1581)
OKLCHoklch(43.64% 0.158 268.8)
XYZxyz(10.3351, 7.7736, 37.5075)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A7 #A7902F
analogous
#2F82A7 #2F46A7 #542FA7
triadic
#2F46A7 #A72F46 #46A72F
tetradic
#2F46A7 #A72F82 #A7902F #2FA754
square
#2F46A7 #A72F82 #A7902F #2FA754
split-complementary
#2F46A7 #A7542F #82A72F
monochromatic
#141E47 #223277 #2F46A7 #4861CB #788AD9

Accessibility & contrast

On white

8.22
#2F46A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F46A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A7
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A7#FFFFFF#000000##FFFFFF
##2F46A71.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f46a7;
/* rgb */ color: rgb(47, 70, 167);
/* oklch */ color: oklch(43.6% 0.158 268.8);
Tailwind
colors: {
  custom: {
    50: '#7879c2',
    500: '#2f46a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a7;
$custom-light: #7879c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a7",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 167
  },
  "hsl": {
    "h": 228.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43638,
    "c": 0.15814,
    "h": 268.8
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#2F46A7
secondary
#C1B271
accent
#C248DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F46A7

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

Preview Lab → · Contrast checker → · Palette generator →

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