#2F4295#2F4295

#2F4295 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.138 H 269.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F4295
RGBrgb(47, 66, 149)
HSLhsl(229, 52%, 38%)
HSVhsv(229, 68%, 58%)
CMYKcmyk(68.5%, 55.7%, 0%, 41.6%)
CIE-LABlab(31.04, 21.20, -47.96)
CIE-LCHlch(31.04, 52.44, 293.85°)
OKLaboklab(41.36% -0.0007 -0.1379)
OKLCHoklch(41.36% 0.138 269.7)
XYZxyz(8.5435, 6.6699, 29.2651)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4295 #95822F
analogous
#2F7595 #2F4295 #4F2F95
triadic
#2F4295 #952F42 #42952F
tetradic
#2F4295 #952F75 #95822F #2F954F
square
#2F4295 #952F75 #95822F #2F954F
split-complementary
#2F4295 #954F2F #75952F
monochromatic
#121938 #202D66 #2F4295 #3F57C2 #6D80D1

Accessibility & contrast

On white

9.00
#2F4295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F4295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4295
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4295#FFFFFF#000000##FFFFFF
##2F42951.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4295;
/* rgb */ color: rgb(47, 66, 149);
/* oklch */ color: oklch(41.4% 0.138 269.7);
Tailwind
colors: {
  custom: {
    50: '#7476b5',
    500: '#2f4295',
    950: '#000000',
  },
}
SCSS
$custom: #2f4295;
$custom-light: #7476b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4295",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 149
  },
  "hsl": {
    "h": 228.824,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.13791,
    "h": 269.7
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#2F4295
secondary
#B8A967
accent
#C14CDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4295

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

Preview Lab → · Contrast checker → · Palette generator →

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