#2F3F9B#2F3F9B

#2F3F9B is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.150 H 270.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F3F9B
RGBrgb(47, 63, 155)
HSLhsl(231, 53%, 40%)
HSVhsv(231, 70%, 61%)
CMYKcmyk(69.7%, 59.4%, 0%, 39.2%)
CIE-LABlab(30.70, 25.45, -52.17)
CIE-LCHlch(30.70, 58.05, 296.00°)
OKLaboklab(41.25% 0.0021 -0.1503)
OKLCHoklch(41.25% 0.15 270.8)
XYZxyz(8.8642, 6.5251, 31.7963)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F9B #9B8B2F
analogous
#2F759B #2F3F9B #552F9B
triadic
#2F3F9B #9B2F3F #3F9B2F
tetradic
#2F3F9B #9B2F75 #9B8B2F #2F9B55
square
#2F3F9B #9B2F75 #9B8B2F #2F9B55
split-complementary
#2F3F9B #9B552F #759B2F
monochromatic
#13193D #212C6C #2F3F9B #4255C6 #717FD4

Accessibility & contrast

On white

9.11
#2F3F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3F9B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F9B#FFFFFF#000000##FFFFFF
##2F3F9B1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3f9b;
/* rgb */ color: rgb(47, 63, 155);
/* oklch */ color: oklch(41.2% 0.150 270.8);
Tailwind
colors: {
  custom: {
    50: '#7673b9',
    500: '#2f3f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f9b;
$custom-light: #7673b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f9b",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 231.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.15034,
    "h": 270.8
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#2F3F9B
secondary
#BBAF6A
accent
#C74BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2F3F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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