#2F306D#2F306D

#2F306D is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.104 H 278.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2F306D
RGBrgb(47, 48, 109)
HSLhsl(239, 40%, 31%)
HSVhsv(239, 57%, 43%)
CMYKcmyk(56.9%, 56%, 0%, 57.3%)
CIE-LABlab(23.07, 18.78, -35.79)
CIE-LCHlch(23.07, 40.42, 297.69°)
OKLaboklab(34.43% 0.0158 -0.1023)
OKLCHoklch(34.43% 0.104 278.8)
XYZxyz(4.9887, 3.8221, 14.9399)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F306D #6D6C2F
analogous
#2F4F6D #2F306D #4D2F6D
triadic
#2F306D #6D2F30 #306D2F
tetradic
#2F306D #6D2F4F #6D6C2F #2F6D4D
square
#2F306D #6D2F4F #6D6C2F #2F6D4D
split-complementary
#2F306D #6D4D2F #4F6D2F
monochromatic
#0A0A17 #1D1D42 #2F306D #414398 #5D5FB9

Accessibility & contrast

On white

11.90
#2F306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F306D
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F306D#FFFFFF#000000##FFFFFF
##2F306D1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A6F
Deuteranopia (green-blind)
#03356C
Tritanopia (blue-blind)
#123E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f306d;
/* rgb */ color: rgb(47, 48, 109);
/* oklch */ color: oklch(34.4% 0.104 278.8);
Tailwind
colors: {
  custom: {
    50: '#6d6897',
    500: '#2f306d',
    950: '#000000',
  },
}
SCSS
$custom: #2f306d;
$custom-light: #6d6897;
$custom-dark: #000000;
JSON
{
  "hex": "#2f306d",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 239.032,
    "s": 39.744,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34429,
    "c": 0.10352,
    "h": 278.8
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#2F306D
secondary
#9E9D59
accent
#CE58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F306D

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

Preview Lab → · Contrast checker → · Palette generator →

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