#2D307D#2D307D

#2D307D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.128 H 276.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#2D307D
RGBrgb(45, 48, 125)
HSLhsl(238, 47%, 33%)
HSVhsv(238, 64%, 49%)
CMYKcmyk(64%, 61.6%, 0%, 51%)
CIE-LABlab(24.17, 24.16, -44.23)
CIE-LCHlch(24.17, 50.40, 298.64°)
OKLaboklab(35.6% 0.0135 -0.1272)
OKLCHoklch(35.6% 0.128 276.1)
XYZxyz(5.8396, 4.1520, 19.8917)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307D #7D7A2D
analogous
#2D587D #2D307D #522D7D
triadic
#2D307D #7D2D30 #307D2D
tetradic
#2D307D #7D2D58 #7D7A2D #2D7D52
square
#2D307D #7D2D58 #7D7A2D #2D7D52
split-complementary
#2D307D #7D522D #587D2D
monochromatic
#0D0D23 #1D1F50 #2D307D #3D41AA #5F63C5

Accessibility & contrast

On white

11.47
#2D307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D307D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D307D#FFFFFF#000000##FFFFFF
##2D307D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d307d;
/* rgb */ color: rgb(45, 48, 125);
/* oklch */ color: oklch(35.6% 0.128 276.1);
Tailwind
colors: {
  custom: {
    50: '#6f68a3',
    500: '#2d307d',
    950: '#000000',
  },
}
SCSS
$custom: #2d307d;
$custom-light: #6f68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307d",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 237.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.12791,
    "h": 276.1
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D307D

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

Preview Lab → · Contrast checker → · Palette generator →

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