#2F3CA5#2F3CA5

#2F3CA5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.168 H 271.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F3CA5
RGBrgb(47, 60, 165)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 72%, 65%)
CMYKcmyk(71.5%, 63.6%, 0%, 35.3%)
CIE-LABlab(30.76, 31.10, -58.12)
CIE-LCHlch(30.76, 65.91, 298.15°)
OKLaboklab(41.55% 0.0043 -0.1678)
OKLCHoklch(41.55% 0.168 271.5)
XYZxyz(9.5774, 6.5517, 36.3499)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CA5 #A5982F
analogous
#2F77A5 #2F3CA5 #5D2FA5
triadic
#2F3CA5 #A52F3C #3CA52F
tetradic
#2F3CA5 #A52F77 #A5982F #2FA55D
square
#2F3CA5 #A52F77 #A5982F #2FA55D
split-complementary
#2F3CA5 #A55D2F #77A52F
monochromatic
#141946 #212B75 #2F3CA5 #4755CB #7681D8

Accessibility & contrast

On white

9.09
#2F3CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F3CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CA5
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CA5#FFFFFF#000000##FFFFFF
##2F3CA51.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3ca5;
/* rgb */ color: rgb(47, 60, 165);
/* oklch */ color: oklch(41.6% 0.168 271.5);
Tailwind
colors: {
  custom: {
    50: '#7871c1',
    500: '#2f3ca5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ca5;
$custom-light: #7871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ca5",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 233.39,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.16786,
    "h": 271.5
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#2F3CA5
secondary
#C0B770
accent
#CE49DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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