#2F307E#2F307E

#2F307E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.129 H 277.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2F307E
RGBrgb(47, 48, 126)
HSLhsl(239, 46%, 34%)
HSVhsv(239, 63%, 49%)
CMYKcmyk(62.7%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.40, 24.89, -44.48)
CIE-LCHlch(24.40, 50.97, 299.23°)
OKLaboklab(35.83% 0.016 -0.1279)
OKLCHoklch(35.83% 0.129 277.1)
XYZxyz(5.9939, 4.2241, 20.2341)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307E #7E7D2F
analogous
#2F587E #2F307E #562F7E
triadic
#2F307E #7E2F30 #307E2F
tetradic
#2F307E #7E2F58 #7E7D2F #2F7E56
square
#2F307E #7E2F58 #7E7D2F #2F7E56
split-complementary
#2F307E #7E562F #587E2F
monochromatic
#0E0E25 #1E1F51 #2F307E #4041AB #6364C5

Accessibility & contrast

On white

11.38
#2F307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F307E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307E#FFFFFF#000000##FFFFFF
##2F307E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f307e;
/* rgb */ color: rgb(47, 48, 126);
/* oklch */ color: oklch(35.8% 0.129 277.1);
Tailwind
colors: {
  custom: {
    50: '#7168a4',
    500: '#2f307e',
    950: '#000000',
  },
}
SCSS
$custom: #2f307e;
$custom-light: #7168a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307e",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 239.241,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35833,
    "c": 0.12887,
    "h": 277.1
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#2F307E
secondary
#ACAB5D
accent
#D452D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F307E

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

Preview Lab → · Contrast checker → · Palette generator →

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