#2F4481#2F4481

#2F4481 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.3% C 0.106 H 267.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4481
RGBrgb(47, 68, 129)
HSLhsl(225, 47%, 35%)
HSVhsv(225, 64%, 51%)
CMYKcmyk(63.6%, 47.3%, 0%, 49.4%)
CIE-LABlab(30.21, 12.37, -36.98)
CIE-LCHlch(30.21, 38.99, 288.50°)
OKLaboklab(40.28% -0.005 -0.1056)
OKLCHoklch(40.28% 0.106 267.3)
XYZxyz(7.2005, 6.3229, 21.6056)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4481 #816C2F
analogous
#2F6D81 #2F4481 #432F81
triadic
#2F4481 #812F44 #44812F
tetradic
#2F4481 #812F6D #816C2F #2F8143
square
#2F4481 #812F6D #816C2F #2F8143
split-complementary
#2F4481 #81432F #6D812F
monochromatic
#0E1527 #1F2C54 #2F4481 #3F5CAE #647DC6

Accessibility & contrast

On white

9.27
#2F4481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F4481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4481
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4481#FFFFFF#000000##FFFFFF
##2F44811.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274B83
Deuteranopia (green-blind)
#1A4480
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4481;
/* rgb */ color: rgb(47, 68, 129);
/* oklch */ color: oklch(40.3% 0.106 267.3);
Tailwind
colors: {
  custom: {
    50: '#7077a6',
    500: '#2f4481',
    950: '#000000',
  },
}
SCSS
$custom: #2f4481;
$custom-light: #7077a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4481",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 129
  },
  "hsl": {
    "h": 224.634,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40278,
    "c": 0.10569,
    "h": 267.3
  },
  "luminance": 0.06324
}

Semantic roles & 50–950 ramp

primary
#2F4481
secondary
#AD995E
accent
#B452D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4481

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

Preview Lab → · Contrast checker → · Palette generator →

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