#2F3B9F#2F3B9F

#2F3B9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.161 H 271.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2F3B9F
RGBrgb(47, 59, 159)
HSLhsl(234, 54%, 40%)
HSVhsv(234, 70%, 62%)
CMYKcmyk(70.4%, 62.9%, 0%, 37.6%)
CIE-LABlab(30.00, 29.57, -55.74)
CIE-LCHlch(30.00, 63.10, 297.94°)
OKLaboklab(40.83% 0.0053 -0.1609)
OKLCHoklch(40.83% 0.161 271.9)
XYZxyz(8.9922, 6.2346, 33.5237)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B9F #9F932F
analogous
#2F739F #2F3B9F #5B2F9F
triadic
#2F3B9F #9F2F3B #3B9F2F
tetradic
#2F3B9F #9F2F73 #9F932F #2F9F5B
square
#2F3B9F #9F2F73 #9F932F #2F9F5B
split-complementary
#2F3B9F #9F5B2F #739F2F
monochromatic
#131841 #212970 #2F3B9F #4452C8 #737DD6

Accessibility & contrast

On white

9.35
#2F3B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F3B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B9F
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B9F#FFFFFF#000000##FFFFFF
##2F3B9F1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3b9f;
/* rgb */ color: rgb(47, 59, 159);
/* oklch */ color: oklch(40.8% 0.161 271.9);
Tailwind
colors: {
  custom: {
    50: '#7771bc',
    500: '#2f3b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b9f;
$custom-light: #7771bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b9f",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 159
  },
  "hsl": {
    "h": 233.571,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.16096,
    "h": 271.9
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#2F3B9F
secondary
#BDB56D
accent
#CE4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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