#2F307D#2F307D

#2F307D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.127 H 277.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2F307D
RGBrgb(47, 48, 125)
HSLhsl(239, 45%, 34%)
HSVhsv(239, 62%, 49%)
CMYKcmyk(62.4%, 61.6%, 0%, 51%)
CIE-LABlab(24.32, 24.52, -43.98)
CIE-LCHlch(24.32, 50.36, 299.15°)
OKLaboklab(35.75% 0.016 -0.1264)
OKLCHoklch(35.75% 0.127 277.2)
XYZxyz(5.9297, 4.1985, 19.8960)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307D #7D7C2F
analogous
#2F577D #2F307D #552F7D
triadic
#2F307D #7D2F30 #307D2F
tetradic
#2F307D #7D2F57 #7D7C2F #2F7D55
square
#2F307D #7D2F57 #7D7C2F #2F7D55
split-complementary
#2F307D #7D552F #577D2F
monochromatic
#0E0E24 #1E1F51 #2F307D #4041A9 #6264C4

Accessibility & contrast

On white

11.41
#2F307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F307D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307D#FFFFFF#000000##FFFFFF
##2F307D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f307d;
/* rgb */ color: rgb(47, 48, 125);
/* oklch */ color: oklch(35.7% 0.127 277.2);
Tailwind
colors: {
  custom: {
    50: '#7068a3',
    500: '#2f307d',
    950: '#000000',
  },
}
SCSS
$custom: #2f307d;
$custom-light: #7068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307d",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 239.231,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.12742,
    "h": 277.2
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#2F307D
secondary
#ABAA5D
accent
#D353D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F307D

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

Preview Lab → · Contrast checker → · Palette generator →

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