#2F3AB8#2F3AB8

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

Color values

HEX#2F3AB8
RGBrgb(47, 58, 184)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 72%)
CMYKcmyk(74.5%, 68.5%, 0%, 27.8%)
CIE-LABlab(32.01, 39.16, -67.41)
CIE-LCHlch(32.01, 77.96, 300.15°)
OKLaboklab(42.99% 0.0041 -0.195)
OKLCHoklch(42.99% 0.195 271.2)
XYZxyz(11.3341, 7.0899, 46.1093)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AB8 #B8AD2F
analogous
#2F7FB8 #2F3AB8 #682FB8
triadic
#2F3AB8 #B82F3A #3AB82F
tetradic
#2F3AB8 #B82F7F #B8AD2F #2FB868
square
#2F3AB8 #B82F7F #B8AD2F #2FB868
split-complementary
#2F3AB8 #B8682F #7FB82F
monochromatic
#161B57 #232B87 #2F3AB8 #525CD3 #828ADF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F3AB8#FFFFFF#000000##FFFFFF
##2F3AB81.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)
#0052BC
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3ab8;
/* rgb */ color: rgb(47, 58, 184);
/* oklch */ color: oklch(43.0% 0.195 271.2);
Tailwind
colors: {
  custom: {
    50: '#7d70ce',
    500: '#2f3ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ab8;
$custom-light: #7d70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ab8",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 235.182,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4299,
    "c": 0.19507,
    "h": 271.2
  },
  "luminance": 0.07091
}

Semantic roles & 50–950 ramp

primary
#2F3AB8
secondary
#C8C27B
accent
#D645E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F3AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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