#2F46A5#2F46A5

#2F46A5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.155 H 268.7°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2F46A5
RGBrgb(47, 70, 165)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(71.5%, 57.6%, 0%, 35.3%)
CIE-LABlab(33.35, 24.51, -53.90)
CIE-LCHlch(33.35, 59.21, 294.45°)
OKLaboklab(43.47% -0.0034 -0.1553)
OKLCHoklch(43.47% 0.155 268.7)
XYZxyz(10.1516, 7.7002, 36.5413)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A5 #A58E2F
analogous
#2F81A5 #2F46A5 #532FA5
triadic
#2F46A5 #A52F46 #46A52F
tetradic
#2F46A5 #A52F81 #A58E2F #2FA553
square
#2F46A5 #A52F81 #A58E2F #2FA553
split-complementary
#2F46A5 #A5532F #81A52F
monochromatic
#141E46 #213275 #2F46A5 #4760CB #7689D8

Accessibility & contrast

On white

8.27
#2F46A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F46A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A5#FFFFFF#000000##FFFFFF
##2F46A51.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f46a5;
/* rgb */ color: rgb(47, 70, 165);
/* oklch */ color: oklch(43.5% 0.155 268.7);
Tailwind
colors: {
  custom: {
    50: '#7779c0',
    500: '#2f46a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a5;
$custom-light: #7779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a5",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 165
  },
  "hsl": {
    "h": 228.305,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43472,
    "c": 0.15536,
    "h": 268.7
  },
  "luminance": 0.07701
}

Semantic roles & 50–950 ramp

primary
#2F46A5
secondary
#C0B070
accent
#C249DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F46A5

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

Preview Lab → · Contrast checker → · Palette generator →

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