#2F3DA1#2F3DA1

#2F3DA1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.161 H 271.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2F3DA1
RGBrgb(47, 61, 161)
HSLhsl(233, 55%, 41%)
HSVhsv(233, 71%, 63%)
CMYKcmyk(70.8%, 62.1%, 0%, 36.9%)
CIE-LABlab(30.67, 28.99, -55.85)
CIE-LCHlch(30.67, 62.92, 297.43°)
OKLaboklab(41.38% 0.0037 -0.1612)
OKLCHoklch(41.38% 0.161 271.3)
XYZxyz(9.2719, 6.5141, 34.4800)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DA1 #A1932F
analogous
#2F76A1 #2F3DA1 #5A2FA1
triadic
#2F3DA1 #A12F3D #3DA12F
tetradic
#2F3DA1 #A12F76 #A1932F #2FA15A
square
#2F3DA1 #A12F76 #A1932F #2FA15A
split-complementary
#2F3DA1 #A15A2F #76A12F
monochromatic
#131942 #212B72 #2F3DA1 #4555C9 #7480D6

Accessibility & contrast

On white

9.12
#2F3DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F3DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DA1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DA1#FFFFFF#000000##FFFFFF
##2F3DA11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3da1;
/* rgb */ color: rgb(47, 61, 161);
/* oklch */ color: oklch(41.4% 0.161 271.3);
Tailwind
colors: {
  custom: {
    50: '#7772be',
    500: '#2f3da1',
    950: '#000000',
  },
}
SCSS
$custom: #2f3da1;
$custom-light: #7772be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3da1",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 232.632,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.1612,
    "h": 271.3
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#2F3DA1
secondary
#BEB46E
accent
#CC4ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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