#2F3D9B#2F3D9B

#2F3D9B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.153 H 271.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F3D9B
RGBrgb(47, 61, 155)
HSLhsl(232, 53%, 40%)
HSVhsv(232, 70%, 61%)
CMYKcmyk(69.7%, 60.6%, 0%, 39.2%)
CIE-LABlab(30.18, 26.78, -53.03)
CIE-LCHlch(30.18, 59.41, 296.80°)
OKLaboklab(40.86% 0.0038 -0.1529)
OKLCHoklch(40.86% 0.153 271.4)
XYZxyz(8.7554, 6.3075, 31.7601)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D9B #9B8D2F
analogous
#2F739B #2F3D9B #572F9B
triadic
#2F3D9B #9B2F3D #3D9B2F
tetradic
#2F3D9B #9B2F73 #9B8D2F #2F9B57
square
#2F3D9B #9B2F73 #9B8D2F #2F9B57
split-complementary
#2F3D9B #9B572F #739B2F
monochromatic
#13183D #212B6C #2F3D9B #4253C6 #717DD4

Accessibility & contrast

On white

9.29
#2F3D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F3D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D9B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D9B#FFFFFF#000000##FFFFFF
##2F3D9B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3d9b;
/* rgb */ color: rgb(47, 61, 155);
/* oklch */ color: oklch(40.9% 0.153 271.4);
Tailwind
colors: {
  custom: {
    50: '#7672b9',
    500: '#2f3d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d9b;
$custom-light: #7672b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d9b",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 232.222,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40855,
    "c": 0.15292,
    "h": 271.4
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#2F3D9B
secondary
#BBB16A
accent
#CA4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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