#2F3A8A#2F3A8A

#2F3A8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.133 H 272.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2F3A8A
RGBrgb(47, 58, 138)
HSLhsl(233, 49%, 36%)
HSVhsv(233, 66%, 54%)
CMYKcmyk(65.9%, 58%, 0%, 45.9%)
CIE-LABlab(28.02, 22.52, -46.10)
CIE-LCHlch(28.02, 51.30, 296.03°)
OKLaboklab(38.82% 0.0063 -0.1325)
OKLCHoklch(38.82% 0.133 272.7)
XYZxyz(7.2713, 5.4648, 24.7115)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A8A #8A7F2F
analogous
#2F688A #2F3A8A #522F8A
triadic
#2F3A8A #8A2F3A #3A8A2F
tetradic
#2F3A8A #8A2F68 #8A7F2F #2F8A52
square
#2F3A8A #8A2F68 #8A7F2F #2F8A52
split-complementary
#2F3A8A #8A522F #688A2F
monochromatic
#10142F #1F275C #2F3A8A #3F4DB8 #6874CC

Accessibility & contrast

On white

10.03
#2F3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A8A
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A8A#FFFFFF#000000##FFFFFF
##2F3A8A1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3a8a;
/* rgb */ color: rgb(47, 58, 138);
/* oklch */ color: oklch(38.8% 0.133 272.7);
Tailwind
colors: {
  custom: {
    50: '#7270ad',
    500: '#2f3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a8a;
$custom-light: #7270ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a8a",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 232.747,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38824,
    "c": 0.13269,
    "h": 272.7
  },
  "luminance": 0.05465
}

Semantic roles & 50–950 ramp

primary
#2F3A8A
secondary
#B3A962
accent
#C84FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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