#2F3F9A#2F3F9A

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

Color values

HEX#2F3F9A
RGBrgb(47, 63, 154)
HSLhsl(231, 53%, 39%)
HSVhsv(231, 69%, 60%)
CMYKcmyk(69.5%, 59.1%, 0%, 39.6%)
CIE-LABlab(30.62, 25.08, -51.69)
CIE-LCHlch(30.62, 57.46, 295.88°)
OKLaboklab(41.16% 0.0021 -0.1489)
OKLCHoklch(41.16% 0.149 270.8)
XYZxyz(8.7806, 6.4916, 31.3559)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F9A #9A8A2F
analogous
#2F759A #2F3F9A #552F9A
triadic
#2F3F9A #9A2F3F #3F9A2F
tetradic
#2F3F9A #9A2F75 #9A8A2F #2F9A55
square
#2F3F9A #9A2F75 #9A8A2F #2F9A55
split-complementary
#2F3F9A #9A552F #759A2F
monochromatic
#12193C #212C6B #2F3F9A #4155C5 #707FD3

Accessibility & contrast

On white

9.14
#2F3F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F3F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F9A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F9A#FFFFFF#000000##FFFFFF
##2F3F9A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3f9a;
/* rgb */ color: rgb(47, 63, 154);
/* oklch */ color: oklch(41.2% 0.149 270.8);
Tailwind
colors: {
  custom: {
    50: '#7573b8',
    500: '#2f3f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f9a;
$custom-light: #7573b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f9a",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 231.028,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41161,
    "c": 0.14894,
    "h": 270.8
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#2F3F9A
secondary
#BBAF6A
accent
#C74BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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