#2F46B8#2F46B8

#2F46B8 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.181 H 269.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2F46B8
RGBrgb(47, 70, 184)
HSLhsl(230, 59%, 45%)
HSVhsv(230, 74%, 72%)
CMYKcmyk(74.5%, 62%, 0%, 27.8%)
CIE-LABlab(34.89, 31.55, -62.69)
CIE-LCHlch(34.89, 70.18, 296.72°)
OKLaboklab(45.1% -0.0033 -0.1811)
OKLCHoklch(45.1% 0.181 269)
XYZxyz(12.0112, 8.4441, 46.3350)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46B8 #B8A12F
analogous
#2F8AB8 #2F46B8 #5C2FB8
triadic
#2F46B8 #B82F46 #46B82F
tetradic
#2F46B8 #B82F8A #B8A12F #2FB85C
square
#2F46B8 #B82F8A #B8A12F #2FB85C
split-complementary
#2F46B8 #B85C2F #8AB82F
monochromatic
#162157 #233387 #2F46B8 #5267D3 #8292DF

Accessibility & contrast

On white

7.81
#2F46B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F46B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46B8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46B8#FFFFFF#000000##FFFFFF
##2F46B81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#006378
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f46b8;
/* rgb */ color: rgb(47, 70, 184);
/* oklch */ color: oklch(45.1% 0.181 269.0);
Tailwind
colors: {
  custom: {
    50: '#7c79ce',
    500: '#2f46b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f46b8;
$custom-light: #7c79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46b8",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 184
  },
  "hsl": {
    "h": 229.927,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.18116,
    "h": 269
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#2F46B8
secondary
#C8BB7B
accent
#C845E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F46B8

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

Preview Lab → · Contrast checker → · Palette generator →

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