#2F3DA8#2F3DA8

#2F3DA8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.171 H 271.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F3DA8
RGBrgb(47, 61, 168)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 72%, 66%)
CMYKcmyk(72%, 63.7%, 0%, 34.1%)
CIE-LABlab(31.27, 31.54, -59.09)
CIE-LCHlch(31.27, 66.98, 298.09°)
OKLaboklab(42.01% 0.0034 -0.1706)
OKLCHoklch(42.01% 0.171 271.2)
XYZxyz(9.9065, 6.7680, 37.8225)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DA8 #A89A2F
analogous
#2F7AA8 #2F3DA8 #5E2FA8
triadic
#2F3DA8 #A82F3D #3DA82F
tetradic
#2F3DA8 #A82F7A #A89A2F #2FA85E
square
#2F3DA8 #A82F7A #A89A2F #2FA85E
split-complementary
#2F3DA8 #A85E2F #7AA82F
monochromatic
#141A48 #222C78 #2F3DA8 #4858CC #7883D9

Accessibility & contrast

On white

8.92
#2F3DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DA8
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DA8#FFFFFF#000000##FFFFFF
##2F3DA81.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3da8;
/* rgb */ color: rgb(47, 61, 168);
/* oklch */ color: oklch(42.0% 0.171 271.2);
Tailwind
colors: {
  custom: {
    50: '#7972c3',
    500: '#2f3da8',
    950: '#000000',
  },
}
SCSS
$custom: #2f3da8;
$custom-light: #7972c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3da8",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 233.058,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.17068,
    "h": 271.2
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#2F3DA8
secondary
#C1B871
accent
#CE48E0
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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