#2F3BB2#2F3BB2

#2F3BB2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.186 H 271.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2F3BB2
RGBrgb(47, 59, 178)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(73.6%, 66.9%, 0%, 30.2%)
CIE-LABlab(31.68, 36.42, -64.39)
CIE-LCHlch(31.68, 73.98, 299.49°)
OKLaboklab(42.58% 0.0041 -0.1862)
OKLCHoklch(42.58% 0.186 271.3)
XYZxyz(10.7694, 6.9455, 42.8839)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BB2 #B2A62F
analogous
#2F7DB2 #2F3BB2 #652FB2
triadic
#2F3BB2 #B22F3B #3BB22F
tetradic
#2F3BB2 #B22F7D #B2A62F #2FB265
square
#2F3BB2 #B22F7D #B2A62F #2FB265
split-complementary
#2F3BB2 #B2652F #7DB22F
monochromatic
#151B51 #222B82 #2F3BB2 #4E5AD0 #7E87DD

Accessibility & contrast

On white

8.79
#2F3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F3BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BB2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BB2#FFFFFF#000000##FFFFFF
##2F3BB21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3bb2;
/* rgb */ color: rgb(47, 59, 178);
/* oklch */ color: oklch(42.6% 0.186 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b71ca',
    500: '#2f3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3bb2;
$custom-light: #7b71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3bb2",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 234.504,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42581,
    "c": 0.18625,
    "h": 271.3
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#2F3BB2
secondary
#C6BF77
accent
#D346E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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