#2F438D#2F438D

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

Color values

HEX#2F438D
RGBrgb(47, 67, 141)
HSLhsl(227, 50%, 37%)
HSVhsv(227, 67%, 55%)
CMYKcmyk(66.7%, 52.5%, 0%, 44.7%)
CIE-LABlab(30.74, 17.53, -43.55)
CIE-LCHlch(30.74, 46.95, 291.93°)
OKLaboklab(40.94% -0.0024 -0.1249)
OKLCHoklch(40.94% 0.125 268.9)
XYZxyz(7.9855, 6.5410, 26.0358)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F438D #8D792F
analogous
#2F728D #2F438D #4A2F8D
triadic
#2F438D #8D2F43 #438D2F
tetradic
#2F438D #8D2F72 #8D792F #2F8D4A
square
#2F438D #8D2F72 #8D792F #2F8D4A
split-complementary
#2F438D #8D4A2F #728D2F
monochromatic
#101731 #202D5F #2F438D #3E59BB #697FCD

Accessibility & contrast

On white

9.10
#2F438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F438D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F438D#FFFFFF#000000##FFFFFF
##2F438D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f438d;
/* rgb */ color: rgb(47, 67, 141);
/* oklch */ color: oklch(40.9% 0.125 268.9);
Tailwind
colors: {
  custom: {
    50: '#7276af',
    500: '#2f438d',
    950: '#000000',
  },
}
SCSS
$custom: #2f438d;
$custom-light: #7276af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f438d",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 227.234,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40939,
    "c": 0.12495,
    "h": 268.9
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#2F438D
secondary
#B4A364
accent
#BC4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F438D

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

Preview Lab → · Contrast checker → · Palette generator →

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