#2F457D#2F457D

#2F457D is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.098 H 266.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2F457D
RGBrgb(47, 69, 125)
HSLhsl(223, 45%, 34%)
HSVhsv(223, 62%, 49%)
CMYKcmyk(62.4%, 44.8%, 0%, 51%)
CIE-LABlab(30.26, 10.21, -34.41)
CIE-LCHlch(30.26, 35.90, 286.53°)
OKLaboklab(40.23% -0.0069 -0.098)
OKLCHoklch(40.23% 0.098 266)
XYZxyz(7.0008, 6.3407, 20.2530)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F457D #7D672F
analogous
#2F6C7D #2F457D #402F7D
triadic
#2F457D #7D2F45 #457D2F
tetradic
#2F457D #7D2F6C #7D672F #2F7D40
square
#2F457D #7D2F6C #7D672F #2F7D40
split-complementary
#2F457D #7D402F #6C7D2F
monochromatic
#0E1424 #1E2C51 #2F457D #405EA9 #627EC4

Accessibility & contrast

On white

9.26
#2F457D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F457D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F457D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F457D#FFFFFF#000000##FFFFFF
##2F457D1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4B7F
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f457d;
/* rgb */ color: rgb(47, 69, 125);
/* oklch */ color: oklch(40.2% 0.098 266.0);
Tailwind
colors: {
  custom: {
    50: '#6f78a3',
    500: '#2f457d',
    950: '#000000',
  },
}
SCSS
$custom: #2f457d;
$custom-light: #6f78a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f457d",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 125
  },
  "hsl": {
    "h": 223.077,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.09827,
    "h": 266
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#2F457D
secondary
#AB955D
accent
#B053D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F457D

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

Preview Lab → · Contrast checker → · Palette generator →

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