#2F307F#2F307F

#2F307F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.130 H 277.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2F307F
RGBrgb(47, 48, 127)
HSLhsl(239, 46%, 34%)
HSVhsv(239, 63%, 50%)
CMYKcmyk(63%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.48, 25.24, -44.97)
CIE-LCHlch(24.48, 51.57, 299.31°)
OKLaboklab(35.92% 0.016 -0.1293)
OKLCHoklch(35.92% 0.13 277.1)
XYZxyz(6.0588, 4.2501, 20.5756)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307F #7F7E2F
analogous
#2F587F #2F307F #562F7F
triadic
#2F307F #7F2F30 #307F2F
tetradic
#2F307F #7F2F58 #7F7E2F #2F7F56
square
#2F307F #7F2F58 #7F7E2F #2F7F56
split-complementary
#2F307F #7F562F #587F2F
monochromatic
#0E0E26 #1E1F52 #2F307F #4041AC #6364C5

Accessibility & contrast

On white

11.35
#2F307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F307F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307F#FFFFFF#000000##FFFFFF
##2F307F1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f307f;
/* rgb */ color: rgb(47, 48, 127);
/* oklch */ color: oklch(35.9% 0.130 277.1);
Tailwind
colors: {
  custom: {
    50: '#7168a5',
    500: '#2f307f',
    950: '#000000',
  },
}
SCSS
$custom: #2f307f;
$custom-light: #7168a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307f",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 239.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3592,
    "c": 0.13032,
    "h": 277.1
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#2F307F
secondary
#ACAB5E
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F307F

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

Preview Lab → · Contrast checker → · Palette generator →

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