#2F3CA8#2F3CA8

#2F3CA8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.172 H 271.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F3CA8
RGBrgb(47, 60, 168)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 66%)
CMYKcmyk(72%, 64.3%, 0%, 34.1%)
CIE-LABlab(31.03, 32.19, -59.49)
CIE-LCHlch(31.03, 67.64, 298.42°)
OKLaboklab(41.83% 0.0042 -0.1718)
OKLCHoklch(41.83% 0.172 271.4)
XYZxyz(9.8536, 6.6622, 37.8048)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CA8 #A89B2F
analogous
#2F78A8 #2F3CA8 #5F2FA8
triadic
#2F3CA8 #A82F3C #3CA82F
tetradic
#2F3CA8 #A82F78 #A89B2F #2FA85F
square
#2F3CA8 #A82F78 #A89B2F #2FA85F
split-complementary
#2F3CA8 #A85F2F #78A82F
monochromatic
#141A48 #222B78 #2F3CA8 #4856CC #7883D9

Accessibility & contrast

On white

9.00
#2F3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F3CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CA8
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CA8#FFFFFF#000000##FFFFFF
##2F3CA81.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3ca8;
/* rgb */ color: rgb(47, 60, 168);
/* oklch */ color: oklch(41.8% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#7971c3',
    500: '#2f3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ca8;
$custom-light: #7971c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ca8",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 233.554,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41825,
    "c": 0.1719,
    "h": 271.4
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#2F3CA8
secondary
#C1B971
accent
#CF48E0
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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