#2F438B#2F438B

#2F438B is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.8% C 0.122 H 268.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2F438B
RGBrgb(47, 67, 139)
HSLhsl(227, 49%, 36%)
HSVhsv(227, 66%, 55%)
CMYKcmyk(66.2%, 51.8%, 0%, 45.5%)
CIE-LABlab(30.60, 16.78, -42.55)
CIE-LCHlch(30.60, 45.74, 291.53°)
OKLaboklab(40.79% -0.0026 -0.122)
OKLCHoklch(40.79% 0.122 268.8)
XYZxyz(7.8381, 6.4820, 25.2592)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F438B #8B772F
analogous
#2F718B #2F438B #492F8B
triadic
#2F438B #8B2F43 #438B2F
tetradic
#2F438B #8B2F71 #8B772F #2F8B49
square
#2F438B #8B2F71 #8B772F #2F8B49
split-complementary
#2F438B #8B492F #718B2F
monochromatic
#101730 #202D5D #2F438B #3E59B9 #687ECC

Accessibility & contrast

On white

9.14
#2F438B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F438B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F438B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F438B#FFFFFF#000000##FFFFFF
##2F438B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f438b;
/* rgb */ color: rgb(47, 67, 139);
/* oklch */ color: oklch(40.8% 0.122 268.8);
Tailwind
colors: {
  custom: {
    50: '#7276ad',
    500: '#2f438b',
    950: '#000000',
  },
}
SCSS
$custom: #2f438b;
$custom-light: #7276ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f438b",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 226.957,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40788,
    "c": 0.12201,
    "h": 268.8
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#2F438B
secondary
#B3A263
accent
#BB4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F438B

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

Preview Lab → · Contrast checker → · Palette generator →

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