#2F3CB2#2F3CB2

#2F3CB2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.185 H 271.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2F3CB2
RGBrgb(47, 60, 178)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 74%, 70%)
CMYKcmyk(73.6%, 66.3%, 0%, 30.2%)
CIE-LABlab(31.92, 35.79, -64.00)
CIE-LCHlch(31.92, 73.33, 299.21°)
OKLaboklab(42.75% 0.0035 -0.1851)
OKLCHoklch(42.75% 0.185 271.1)
XYZxyz(10.8213, 7.0493, 42.9012)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CB2 #B2A52F
analogous
#2F7EB2 #2F3CB2 #642FB2
triadic
#2F3CB2 #B22F3C #3CB22F
tetradic
#2F3CB2 #B22F7E #B2A52F #2FB264
square
#2F3CB2 #B22F7E #B2A52F #2FB264
split-complementary
#2F3CB2 #B2642F #7EB22F
monochromatic
#151B51 #222C82 #2F3CB2 #4E5BD0 #7E88DD

Accessibility & contrast

On white

8.71
#2F3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F3CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CB2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CB2#FFFFFF#000000##FFFFFF
##2F3CB21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3cb2;
/* rgb */ color: rgb(47, 60, 178);
/* oklch */ color: oklch(42.8% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#7b72ca',
    500: '#2f3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3cb2;
$custom-light: #7b72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3cb2",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 234.046,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.18509,
    "h": 271.1
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#2F3CB2
secondary
#C6BE77
accent
#D246E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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