#2F3A96#2F3A96

#2F3A96 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.150 H 272.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2F3A96
RGBrgb(47, 58, 150)
HSLhsl(234, 52%, 39%)
HSVhsv(234, 69%, 59%)
CMYKcmyk(68.7%, 61.3%, 0%, 41.2%)
CIE-LABlab(28.98, 26.93, -51.92)
CIE-LCHlch(28.98, 58.49, 297.42°)
OKLaboklab(39.84% 0.0063 -0.1496)
OKLCHoklch(39.84% 0.15 272.4)
XYZxyz(8.1885, 5.8317, 29.5423)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A96 #968B2F
analogous
#2F6D96 #2F3A96 #572F96
triadic
#2F3A96 #962F3A #3A962F
tetradic
#2F3A96 #962F6D #968B2F #2F9657
square
#2F3A96 #962F6D #968B2F #2F9657
split-complementary
#2F3A96 #96572F #6D962F
monochromatic
#121639 #202867 #2F3A96 #3F4DC3 #6E79D2

Accessibility & contrast

On white

9.69
#2F3A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A96
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A96#FFFFFF#000000##FFFFFF
##2F3A961.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3a96;
/* rgb */ color: rgb(47, 58, 150);
/* oklch */ color: oklch(39.8% 0.150 272.4);
Tailwind
colors: {
  custom: {
    50: '#7570b6',
    500: '#2f3a96',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a96;
$custom-light: #7570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a96",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 233.592,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39844,
    "c": 0.14978,
    "h": 272.4
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#2F3A96
secondary
#B9B068
accent
#CC4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A96

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

Preview Lab → · Contrast checker → · Palette generator →

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