#2F3EB1#2F3EB1

#2F3EB1 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.181 H 270.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2F3EB1
RGBrgb(47, 62, 177)
HSLhsl(233, 58%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(73.4%, 65%, 0%, 30.6%)
CIE-LABlab(32.31, 34.16, -62.77)
CIE-LCHlch(32.31, 71.46, 298.55°)
OKLaboklab(43.01% 0.0023 -0.1814)
OKLCHoklch(43.01% 0.181 270.7)
XYZxyz(10.8280, 7.2228, 42.4099)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EB1 #B1A22F
analogous
#2F7FB1 #2F3EB1 #612FB1
triadic
#2F3EB1 #B12F3E #3EB12F
tetradic
#2F3EB1 #B12F7F #B1A22F #2FB161
square
#2F3EB1 #B12F7F #B1A22F #2FB161
split-complementary
#2F3EB1 #B1612F #7FB12F
monochromatic
#151C50 #222D81 #2F3EB1 #4D5CD0 #7E89DD

Accessibility & contrast

On white

8.59
#2F3EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2F3EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EB1
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EB1#FFFFFF#000000##FFFFFF
##2F3EB11.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3eb1;
/* rgb */ color: rgb(47, 62, 177);
/* oklch */ color: oklch(43.0% 0.181 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b73c9',
    500: '#2f3eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eb1;
$custom-light: #7b73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eb1",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 177
  },
  "hsl": {
    "h": 233.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43011,
    "c": 0.18145,
    "h": 270.7
  },
  "luminance": 0.07224
}

Semantic roles & 50–950 ramp

primary
#2F3EB1
secondary
#C5BC76
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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