#2F3FAB#2F3FAB

#2F3FAB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.172 H 270.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2F3FAB
RGBrgb(47, 63, 171)
HSLhsl(232, 57%, 43%)
HSVhsv(232, 73%, 67%)
CMYKcmyk(72.5%, 63.2%, 0%, 32.9%)
CIE-LABlab(32.03, 31.34, -59.65)
CIE-LCHlch(32.03, 67.38, 297.72°)
OKLaboklab(42.65% 0.0019 -0.1723)
OKLCHoklch(42.65% 0.172 270.6)
XYZxyz(10.2980, 7.0986, 39.3476)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FAB #AB9B2F
analogous
#2F7DAB #2F3FAB #5D2FAB
triadic
#2F3FAB #AB2F3F #3FAB2F
tetradic
#2F3FAB #AB2F7D #AB9B2F #2FAB5D
square
#2F3FAB #AB2F7D #AB9B2F #2FAB5D
split-complementary
#2F3FAB #AB5D2F #7DAB2F
monochromatic
#151C4B #222D7B #2F3FAB #4A5BCD #7A86DA

Accessibility & contrast

On white

8.68
#2F3FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F3FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FAB
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FAB#FFFFFF#000000##FFFFFF
##2F3FAB1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3fab;
/* rgb */ color: rgb(47, 63, 171);
/* oklch */ color: oklch(42.6% 0.172 270.6);
Tailwind
colors: {
  custom: {
    50: '#7974c5',
    500: '#2f3fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fab;
$custom-light: #7974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fab",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 232.258,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.17228,
    "h": 270.6
  },
  "luminance": 0.071
}

Semantic roles & 50–950 ramp

primary
#2F3FAB
secondary
#C3B873
accent
#CC48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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