#2F3FB7#2F3FB7

#2F3FB7 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.188 H 270.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2F3FB7
RGBrgb(47, 63, 183)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 72%)
CMYKcmyk(74.3%, 65.6%, 0%, 28.2%)
CIE-LABlab(33.09, 35.68, -65.06)
CIE-LCHlch(33.09, 74.20, 298.74°)
OKLaboklab(43.75% 0.0013 -0.1881)
OKLCHoklch(43.75% 0.188 270.4)
XYZxyz(11.4941, 7.5770, 45.6473)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FB7 #B7A72F
analogous
#2F83B7 #2F3FB7 #632FB7
triadic
#2F3FB7 #B72F3F #3FB72F
tetradic
#2F3FB7 #B72F83 #B7A72F #2FB763
square
#2F3FB7 #B72F83 #B7A72F #2FB763
split-complementary
#2F3FB7 #B7632F #83B72F
monochromatic
#161D56 #222E86 #2F3FB7 #5160D2 #828DDF

Accessibility & contrast

On white

8.35
#2F3FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F3FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FB7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FB7#FFFFFF#000000##FFFFFF
##2F3FB71.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f3fb7;
/* rgb */ color: rgb(47, 63, 183);
/* oklch */ color: oklch(43.7% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#7c74ce',
    500: '#2f3fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fb7;
$custom-light: #7c74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fb7",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 232.941,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43745,
    "c": 0.18812,
    "h": 270.4
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#2F3FB7
secondary
#C8BF7A
accent
#D045E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2F3FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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