#2F3D9A#2F3D9A

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

Color values

HEX#2F3D9A
RGBrgb(47, 61, 154)
HSLhsl(232, 53%, 39%)
HSVhsv(232, 69%, 60%)
CMYKcmyk(69.5%, 60.4%, 0%, 39.6%)
CIE-LABlab(30.09, 26.41, -52.55)
CIE-LCHlch(30.09, 58.81, 296.68°)
OKLaboklab(40.77% 0.0038 -0.1515)
OKLCHoklch(40.77% 0.152 271.4)
XYZxyz(8.6718, 6.2741, 31.3196)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D9A #9A8C2F
analogous
#2F729A #2F3D9A #572F9A
triadic
#2F3D9A #9A2F3D #3D9A2F
tetradic
#2F3D9A #9A2F72 #9A8C2F #2F9A57
square
#2F3D9A #9A2F72 #9A8C2F #2F9A57
split-complementary
#2F3D9A #9A572F #729A2F
monochromatic
#12183C #212A6B #2F3D9A #4152C5 #707DD3

Accessibility & contrast

On white

9.31
#2F3D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3D9A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D9A#FFFFFF#000000##FFFFFF
##2F3D9A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3d9a;
/* rgb */ color: rgb(47, 61, 154);
/* oklch */ color: oklch(40.8% 0.152 271.4);
Tailwind
colors: {
  custom: {
    50: '#7672b9',
    500: '#2f3d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d9a;
$custom-light: #7672b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d9a",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 232.15,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.15152,
    "h": 271.4
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#2F3D9A
secondary
#BBB06A
accent
#CA4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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