#2F4585#2F4585

#2F4585 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.110 H 267.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4585
RGBrgb(47, 69, 133)
HSLhsl(225, 48%, 35%)
HSVhsv(225, 65%, 52%)
CMYKcmyk(64.7%, 48.1%, 0%, 47.8%)
CIE-LABlab(30.77, 13.18, -38.57)
CIE-LCHlch(30.77, 40.76, 288.87°)
OKLaboklab(40.79% -0.0055 -0.1102)
OKLCHoklch(40.79% 0.11 267.2)
XYZxyz(7.5326, 6.5534, 23.0537)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4585 #856F2F
analogous
#2F7085 #2F4585 #442F85
triadic
#2F4585 #852F45 #45852F
tetradic
#2F4585 #852F70 #856F2F #2F8544
square
#2F4585 #852F70 #856F2F #2F8544
split-complementary
#2F4585 #85442F #70852F
monochromatic
#0F162B #1F2E58 #2F4585 #3F5CB2 #667FC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4585#FFFFFF#000000##FFFFFF
##2F45851.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)
#254D87
Deuteranopia (green-blind)
#164584
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4585;
/* rgb */ color: rgb(47, 69, 133);
/* oklch */ color: oklch(40.8% 0.110 267.2);
Tailwind
colors: {
  custom: {
    50: '#7178a9',
    500: '#2f4585',
    950: '#000000',
  },
}
SCSS
$custom: #2f4585;
$custom-light: #7178a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4585",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 133
  },
  "hsl": {
    "h": 224.651,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40787,
    "c": 0.11038,
    "h": 267.2
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#2F4585
secondary
#B09B60
accent
#B550D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4585

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

Preview Lab → · Contrast checker → · Palette generator →

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