#2F438C#2F438C

#2F438C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.123 H 268.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2F438C
RGBrgb(47, 67, 140)
HSLhsl(227, 50%, 37%)
HSVhsv(227, 66%, 55%)
CMYKcmyk(66.4%, 52.1%, 0%, 45.1%)
CIE-LABlab(30.67, 17.16, -43.05)
CIE-LCHlch(30.67, 46.35, 291.73°)
OKLaboklab(40.86% -0.0025 -0.1234)
OKLCHoklch(40.86% 0.123 268.9)
XYZxyz(7.9115, 6.5114, 25.6458)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F438C #8C782F
analogous
#2F728C #2F438C #4A2F8C
triadic
#2F438C #8C2F43 #438C2F
tetradic
#2F438C #8C2F72 #8C782F #2F8C4A
square
#2F438C #8C2F72 #8C782F #2F8C4A
split-complementary
#2F438C #8C4A2F #728C2F
monochromatic
#101730 #202D5E #2F438C #3E59BA #697ECD

Accessibility & contrast

On white

9.12
#2F438C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F438C
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F438C#FFFFFF#000000##FFFFFF
##2F438C1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D8F
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f438c;
/* rgb */ color: rgb(47, 67, 140);
/* oklch */ color: oklch(40.9% 0.123 268.9);
Tailwind
colors: {
  custom: {
    50: '#7276ae',
    500: '#2f438c',
    950: '#000000',
  },
}
SCSS
$custom: #2f438c;
$custom-light: #7276ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f438c",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 140
  },
  "hsl": {
    "h": 227.097,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.12347,
    "h": 268.9
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F438C

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

Preview Lab → · Contrast checker → · Palette generator →

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