#2F3A8F#2F3A8F

#2F3A8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.140 H 272.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2F3A8F
RGBrgb(47, 58, 143)
HSLhsl(233, 51%, 37%)
HSVhsv(233, 67%, 56%)
CMYKcmyk(67.1%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.41, 24.36, -48.55)
CIE-LCHlch(28.41, 54.32, 296.65°)
OKLaboklab(39.24% 0.0064 -0.1397)
OKLCHoklch(39.24% 0.14 272.6)
XYZxyz(7.6416, 5.6129, 26.6620)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A8F #8F842F
analogous
#2F6A8F #2F3A8F #542F8F
triadic
#2F3A8F #8F2F3A #3A8F2F
tetradic
#2F3A8F #8F2F6A #8F842F #2F8F54
square
#2F3A8F #8F2F6A #8F842F #2F8F54
split-complementary
#2F3A8F #8F542F #6A8F2F
monochromatic
#111533 #202761 #2F3A8F #3E4DBD #6A76CE

Accessibility & contrast

On white

9.89
#2F3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F3A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A8F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A8F#FFFFFF#000000##FFFFFF
##2F3A8F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3a8f;
/* rgb */ color: rgb(47, 58, 143);
/* oklch */ color: oklch(39.2% 0.140 272.6);
Tailwind
colors: {
  custom: {
    50: '#7370b0',
    500: '#2f3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a8f;
$custom-light: #7370b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a8f",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 233.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.13988,
    "h": 272.6
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#2F3A8F
secondary
#B5AC65
accent
#CA4EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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