#2F3DB4#2F3DB4

#2F3DB4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.187 H 270.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2F3DB4
RGBrgb(47, 61, 180)
HSLhsl(234, 59%, 45%)
HSVhsv(234, 74%, 71%)
CMYKcmyk(73.9%, 66.1%, 0%, 29.4%)
CIE-LABlab(32.34, 35.87, -64.50)
CIE-LCHlch(32.34, 73.81, 299.08°)
OKLaboklab(43.11% 0.0027 -0.1865)
OKLCHoklch(43.11% 0.187 270.8)
XYZxyz(11.0764, 7.2360, 43.9841)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DB4 #B4A62F
analogous
#2F80B4 #2F3DB4 #642FB4
triadic
#2F3DB4 #B42F3D #3DB42F
tetradic
#2F3DB4 #B42F80 #B4A62F #2FB464
square
#2F3DB4 #B42F80 #B4A62F #2FB464
split-complementary
#2F3DB4 #B4642F #80B42F
monochromatic
#161C53 #222D83 #2F3DB4 #4F5DD1 #808ADE

Accessibility & contrast

On white

8.58
#2F3DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F3DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DB4
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DB4#FFFFFF#000000##FFFFFF
##2F3DB41.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f3db4;
/* rgb */ color: rgb(47, 61, 180);
/* oklch */ color: oklch(43.1% 0.187 270.8);
Tailwind
colors: {
  custom: {
    50: '#7b72cc',
    500: '#2f3db4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3db4;
$custom-light: #7b72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3db4",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 233.684,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43115,
    "c": 0.18654,
    "h": 270.8
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#2F3DB4
secondary
#C7BE78
accent
#D146E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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