#2D307C#2D307C

#2D307C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.126 H 276.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2D307C
RGBrgb(45, 48, 124)
HSLhsl(238, 47%, 33%)
HSVhsv(238, 64%, 49%)
CMYKcmyk(63.7%, 61.3%, 0%, 51.4%)
CIE-LABlab(24.09, 23.79, -43.73)
CIE-LCHlch(24.09, 49.78, 298.55°)
OKLaboklab(35.51% 0.0135 -0.1257)
OKLCHoklch(35.51% 0.126 276.1)
XYZxyz(5.7760, 4.1266, 19.5570)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307C #7C792D
analogous
#2D577C #2D307C #512D7C
triadic
#2D307C #7C2D30 #307C2D
tetradic
#2D307C #7C2D57 #7C792D #2D7C51
square
#2D307C #7C2D57 #7C792D #2D7C51
split-complementary
#2D307C #7C512D #577C2D
monochromatic
#0C0D22 #1D1F4F #2D307C #3D41A9 #5F62C5

Accessibility & contrast

On white

11.50
#2D307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D307C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D307C#FFFFFF#000000##FFFFFF
##2D307C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d307c;
/* rgb */ color: rgb(45, 48, 124);
/* oklch */ color: oklch(35.5% 0.126 276.1);
Tailwind
colors: {
  custom: {
    50: '#6f68a3',
    500: '#2d307c',
    950: '#000000',
  },
}
SCSS
$custom: #2d307c;
$custom-light: #6f68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307c",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 237.722,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35511,
    "c": 0.12646,
    "h": 276.1
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#2D307C
secondary
#ABA85A
accent
#D151D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D307C

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

Preview Lab → · Contrast checker → · Palette generator →

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