#2F3EB7#2F3EB7

#2F3EB7 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.189 H 270.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2F3EB7
RGBrgb(47, 62, 183)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 72%)
CMYKcmyk(74.3%, 66.1%, 0%, 28.2%)
CIE-LABlab(32.85, 36.31, -65.45)
CIE-LCHlch(32.85, 74.84, 299.02°)
OKLaboklab(43.57% 0.0019 -0.1893)
OKLCHoklch(43.57% 0.189 270.6)
XYZxyz(11.4392, 7.4673, 45.6290)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EB7 #B7A82F
analogous
#2F82B7 #2F3EB7 #642FB7
triadic
#2F3EB7 #B72F3E #3EB72F
tetradic
#2F3EB7 #B72F82 #B7A82F #2FB764
square
#2F3EB7 #B72F82 #B7A82F #2FB764
split-complementary
#2F3EB7 #B7642F #82B72F
monochromatic
#161D56 #222E86 #2F3EB7 #515FD2 #828CDF

Accessibility & contrast

On white

8.42
#2F3EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F3EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EB7
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EB7#FFFFFF#000000##FFFFFF
##2F3EB71.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3eb7;
/* rgb */ color: rgb(47, 62, 183);
/* oklch */ color: oklch(43.6% 0.189 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c73ce',
    500: '#2f3eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eb7;
$custom-light: #7c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eb7",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 233.382,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43571,
    "c": 0.18928,
    "h": 270.6
  },
  "luminance": 0.07468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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