#2D438B#2D438B

#2D438B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.123 H 267.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2D438B
RGBrgb(45, 67, 139)
HSLhsl(226, 51%, 36%)
HSVhsv(226, 68%, 55%)
CMYKcmyk(67.6%, 51.8%, 0%, 45.5%)
CIE-LABlab(30.49, 16.43, -42.74)
CIE-LCHlch(30.49, 45.78, 291.03°)
OKLaboklab(40.67% -0.0046 -0.1226)
OKLCHoklch(40.67% 0.123 267.8)
XYZxyz(7.7479, 6.4356, 25.2550)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D438B #8B752D
analogous
#2D728B #2D438B #462D8B
triadic
#2D438B #8B2D43 #438B2D
tetradic
#2D438B #8B2D72 #8B752D #2D8B46
square
#2D438B #8B2D72 #8B752D #2D8B46
split-complementary
#2D438B #8B462D #728B2D
monochromatic
#0F162F #1E2D5D #2D438B #3C59B9 #657ECD

Accessibility & contrast

On white

9.18
#2D438B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D438B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D438B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D438B#FFFFFF#000000##FFFFFF
##2D438B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d438b;
/* rgb */ color: rgb(45, 67, 139);
/* oklch */ color: oklch(40.7% 0.123 267.8);
Tailwind
colors: {
  custom: {
    50: '#7176ad',
    500: '#2d438b',
    950: '#000000',
  },
}
SCSS
$custom: #2d438b;
$custom-light: #7176ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d438b",
  "rgb": {
    "r": 45,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 225.957,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40673,
    "c": 0.12266,
    "h": 267.8
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#2D438B
secondary
#B4A060
accent
#B94DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D438B

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

Preview Lab → · Contrast checker → · Palette generator →

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