#2F3FA8#2F3FA8

#2F3FA8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.168 H 270.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2F3FA8
RGBrgb(47, 63, 168)
HSLhsl(232, 56%, 42%)
HSVhsv(232, 72%, 66%)
CMYKcmyk(72%, 62.5%, 0%, 34.1%)
CIE-LABlab(31.77, 30.24, -58.27)
CIE-LCHlch(31.77, 65.65, 297.43°)
OKLaboklab(42.38% 0.002 -0.1682)
OKLCHoklch(42.38% 0.168 270.7)
XYZxyz(10.0153, 6.9855, 37.8587)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FA8 #A8982F
analogous
#2F7CA8 #2F3FA8 #5C2FA8
triadic
#2F3FA8 #A82F3F #3FA82F
tetradic
#2F3FA8 #A82F7C #A8982F #2FA85C
square
#2F3FA8 #A82F7C #A8982F #2FA85C
split-complementary
#2F3FA8 #A85C2F #7CA82F
monochromatic
#141B48 #222D78 #2F3FA8 #485ACC #7885D9

Accessibility & contrast

On white

8.76
#2F3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F3FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FA8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FA8#FFFFFF#000000##FFFFFF
##2F3FA81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3fa8;
/* rgb */ color: rgb(47, 63, 168);
/* oklch */ color: oklch(42.4% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#7974c3',
    500: '#2f3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fa8;
$custom-light: #7974c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fa8",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 232.066,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42376,
    "c": 0.16824,
    "h": 270.7
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#2F3FA8
secondary
#C1B771
accent
#CC48E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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