#2F3DB2#2F3DB2

#2F3DB2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.184 H 270.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2F3DB2
RGBrgb(47, 61, 178)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 74%, 70%)
CMYKcmyk(73.6%, 65.7%, 0%, 30.2%)
CIE-LABlab(32.16, 35.16, -63.61)
CIE-LCHlch(32.16, 72.68, 298.93°)
OKLaboklab(42.93% 0.0029 -0.1839)
OKLCHoklch(42.93% 0.184 270.9)
XYZxyz(10.8742, 7.1550, 42.9188)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DB2 #B2A42F
analogous
#2F7FB2 #2F3DB2 #632FB2
triadic
#2F3DB2 #B22F3D #3DB22F
tetradic
#2F3DB2 #B22F7F #B2A42F #2FB263
square
#2F3DB2 #B22F7F #B2A42F #2FB263
split-complementary
#2F3DB2 #B2632F #7FB22F
monochromatic
#151C51 #222C82 #2F3DB2 #4E5CD0 #7E88DD

Accessibility & contrast

On white

8.64
#2F3DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F3DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DB2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DB2#FFFFFF#000000##FFFFFF
##2F3DB21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f3db2;
/* rgb */ color: rgb(47, 61, 178);
/* oklch */ color: oklch(42.9% 0.184 270.9);
Tailwind
colors: {
  custom: {
    50: '#7b72ca',
    500: '#2f3db2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3db2;
$custom-light: #7b72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3db2",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 233.588,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42928,
    "c": 0.18393,
    "h": 270.9
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#2F3DB2
secondary
#C6BD77
accent
#D146E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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