#2D307F#2D307F

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

Color values

HEX#2D307F
RGBrgb(45, 48, 127)
HSLhsl(238, 48%, 34%)
HSVhsv(238, 65%, 50%)
CMYKcmyk(64.6%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.33, 24.89, -45.22)
CIE-LCHlch(24.33, 51.62, 298.83°)
OKLaboklab(35.77% 0.0135 -0.1301)
OKLCHoklch(35.77% 0.131 275.9)
XYZxyz(5.9687, 4.2036, 20.5714)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307F #7F7C2D
analogous
#2D597F #2D307F #532D7F
triadic
#2D307F #7F2D30 #307F2D
tetradic
#2D307F #7F2D59 #7F7C2D #2D7F53
square
#2D307F #7F2D59 #7F7C2D #2D7F53
split-complementary
#2D307F #7F532D #597F2D
monochromatic
#0D0E25 #1D1F52 #2D307F #3D41AC #6064C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D307F#FFFFFF#000000##FFFFFF
##2D307F1.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)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d307f;
/* rgb */ color: rgb(45, 48, 127);
/* oklch */ color: oklch(35.8% 0.131 275.9);
Tailwind
colors: {
  custom: {
    50: '#7068a5',
    500: '#2d307f',
    950: '#000000',
  },
}
SCSS
$custom: #2d307f;
$custom-light: #7068a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307f",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 237.805,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.13081,
    "h": 275.9
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#2D307F
secondary
#ADAA5B
accent
#D251D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D307F

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

Preview Lab → · Contrast checker → · Palette generator →

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