#2F307C#2F307C

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

Color values

HEX#2F307C
RGBrgb(47, 48, 124)
HSLhsl(239, 45%, 34%)
HSVhsv(239, 62%, 49%)
CMYKcmyk(62.1%, 61.3%, 0%, 51.4%)
CIE-LABlab(24.24, 24.17, -43.48)
CIE-LCHlch(24.24, 49.75, 299.07°)
OKLaboklab(35.66% 0.0161 -0.1249)
OKLCHoklch(35.66% 0.126 277.3)
XYZxyz(5.8662, 4.1730, 19.5612)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F307C #7C7B2F
analogous
#2F567C #2F307C #542F7C
triadic
#2F307C #7C2F30 #307C2F
tetradic
#2F307C #7C2F56 #7C7B2F #2F7C54
square
#2F307C #7C2F56 #7C7B2F #2F7C54
split-complementary
#2F307C #7C542F #567C2F
monochromatic
#0D0E23 #1E1F50 #2F307C #4041A8 #6263C3

Accessibility & contrast

On white

11.45
#2F307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F307C
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F307C#FFFFFF#000000##FFFFFF
##2F307C1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f307c;
/* rgb */ color: rgb(47, 48, 124);
/* oklch */ color: oklch(35.7% 0.126 277.3);
Tailwind
colors: {
  custom: {
    50: '#7068a3',
    500: '#2f307c',
    950: '#000000',
  },
}
SCSS
$custom: #2f307c;
$custom-light: #7068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f307c",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 239.221,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35661,
    "c": 0.12597,
    "h": 277.3
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F307C

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

Preview Lab → · Contrast checker → · Palette generator →

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