#2F3398#2F3398

#2F3398 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.161 H 274.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2F3398
RGBrgb(47, 51, 152)
HSLhsl(238, 53%, 39%)
HSVhsv(238, 69%, 60%)
CMYKcmyk(69.1%, 66.4%, 0%, 40.4%)
CIE-LABlab(27.40, 32.24, -55.72)
CIE-LCHlch(27.40, 64.38, 300.05°)
OKLaboklab(38.74% 0.0118 -0.1609)
OKLCHoklch(38.74% 0.161 274.2)
XYZxyz(8.0217, 5.2383, 30.2880)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3398 #98942F
analogous
#2F6898 #2F3398 #602F98
triadic
#2F3398 #982F33 #33982F
tetradic
#2F3398 #982F68 #98942F #2F9860
square
#2F3398 #982F68 #98942F #2F9860
split-complementary
#2F3398 #98602F #68982F
monochromatic
#12143B #212369 #2F3398 #4045C4 #6F73D2

Accessibility & contrast

On white

10.25
#2F3398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3398
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3398#FFFFFF#000000##FFFFFF
##2F33981.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3398;
/* rgb */ color: rgb(47, 51, 152);
/* oklch */ color: oklch(38.7% 0.161 274.2);
Tailwind
colors: {
  custom: {
    50: '#766bb7',
    500: '#2f3398',
    950: '#000000',
  },
}
SCSS
$custom: #2f3398;
$custom-light: #766bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3398",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 237.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.16129,
    "h": 274.2
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#2F3398
secondary
#BAB769
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3398

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

Preview Lab → · Contrast checker → · Palette generator →

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