#2F4291#2F4291

#2F4291 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.132 H 269.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4291
RGBrgb(47, 66, 145)
HSLhsl(228, 51%, 38%)
HSVhsv(228, 68%, 57%)
CMYKcmyk(67.6%, 54.5%, 0%, 43.1%)
CIE-LABlab(30.75, 19.71, -46.00)
CIE-LCHlch(30.75, 50.04, 293.19°)
OKLaboklab(41.04% -0.001 -0.1321)
OKLCHoklch(41.04% 0.132 269.6)
XYZxyz(8.2296, 6.5443, 27.6121)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4291 #917E2F
analogous
#2F7391 #2F4291 #4D2F91
triadic
#2F4291 #912F42 #42912F
tetradic
#2F4291 #912F73 #917E2F #2F914D
square
#2F4291 #912F73 #917E2F #2F914D
split-complementary
#2F4291 #914D2F #73912F
monochromatic
#111835 #202D63 #2F4291 #3E57BF #6B7FCF

Accessibility & contrast

On white

9.09
#2F4291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F4291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4291
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4291#FFFFFF#000000##FFFFFF
##2F42911.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4D94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4291;
/* rgb */ color: rgb(47, 66, 145);
/* oklch */ color: oklch(41.0% 0.132 269.6);
Tailwind
colors: {
  custom: {
    50: '#7376b2',
    500: '#2f4291',
    950: '#000000',
  },
}
SCSS
$custom: #2f4291;
$custom-light: #7376b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4291",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 145
  },
  "hsl": {
    "h": 228.367,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41037,
    "c": 0.13213,
    "h": 269.6
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#2F4291
secondary
#B6A765
accent
#BF4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4291

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

Preview Lab → · Contrast checker → · Palette generator →

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