#2F4E9C#2F4E9C

#2F4E9C is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.132 H 265.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9C
RGBrgb(47, 78, 156)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 61%)
CMYKcmyk(69.9%, 50%, 0%, 38.8%)
CIE-LABlab(34.91, 15.79, -45.97)
CIE-LCHlch(34.91, 48.60, 288.95°)
OKLaboklab(44.44% -0.0112 -0.1319)
OKLCHoklch(44.44% 0.132 265.1)
XYZxyz(9.8953, 8.4524, 32.5560)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9C #9C7D2F
analogous
#2F859C #2F4E9C #472F9C
triadic
#2F4E9C #9C2F4E #4E9C2F
tetradic
#2F4E9C #9C2F85 #9C7D2F #2F9C47
square
#2F4E9C #9C2F85 #9C7D2F #2F9C47
split-complementary
#2F4E9C #9C472F #859C2F
monochromatic
#131F3E #21366D #2F4E9C #4268C6 #718DD4

Accessibility & contrast

On white

7.80
#2F4E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F4E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E9C
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9C#FFFFFF#000000##FFFFFF
##2F4E9C1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579F
Deuteranopia (green-blind)
#014D9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4e9c;
/* rgb */ color: rgb(47, 78, 156);
/* oklch */ color: oklch(44.4% 0.132 265.1);
Tailwind
colors: {
  custom: {
    50: '#757fba',
    500: '#2f4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9c;
$custom-light: #757fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9c",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 222.936,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44441,
    "c": 0.13234,
    "h": 265.1
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#2F4E9C
secondary
#BCA56B
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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