#2F46B2#2F46B2

#2F46B2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.173 H 268.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2F46B2
RGBrgb(47, 70, 178)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 74%, 70%)
CMYKcmyk(73.6%, 60.7%, 0%, 30.2%)
CIE-LABlab(34.39, 29.34, -59.96)
CIE-LCHlch(34.39, 66.75, 296.08°)
OKLaboklab(44.57% -0.0032 -0.1731)
OKLCHoklch(44.57% 0.173 268.9)
XYZxyz(11.3956, 8.1978, 43.0926)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46B2 #B29B2F
analogous
#2F88B2 #2F46B2 #5A2FB2
triadic
#2F46B2 #B22F46 #46B22F
tetradic
#2F46B2 #B22F88 #B29B2F #2FB25A
square
#2F46B2 #B22F88 #B29B2F #2FB25A
split-complementary
#2F46B2 #B25A2F #88B22F
monochromatic
#152051 #223382 #2F46B2 #4E65D0 #7E8FDD

Accessibility & contrast

On white

7.96
#2F46B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F46B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46B2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46B2#FFFFFF#000000##FFFFFF
##2F46B21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f46b2;
/* rgb */ color: rgb(47, 70, 178);
/* oklch */ color: oklch(44.6% 0.173 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a79ca',
    500: '#2f46b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f46b2;
$custom-light: #7a79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46b2",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 229.466,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.17315,
    "h": 268.9
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#2F46B2
secondary
#C6B877
accent
#C646E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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