#252F78#252F78

#252F78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.124 H 272.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#252F78
RGBrgb(37, 47, 120)
HSLhsl(233, 53%, 31%)
HSVhsv(233, 69%, 47%)
CMYKcmyk(69.2%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.94, 21.60, -43.09)
CIE-LCHlch(22.94, 48.20, 296.62°)
OKLaboklab(34.41% 0.0048 -0.1241)
OKLCHoklch(34.41% 0.124 272.2)
XYZxyz(5.1685, 3.7819, 18.2233)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F78 #786E25
analogous
#255878 #252F78 #442578
triadic
#252F78 #78252F #2F7825
tetradic
#252F78 #782558 #786E25 #257844
square
#252F78 #782558 #786E25 #257844
split-complementary
#252F78 #784425 #587825
monochromatic
#080A1A #171D49 #252F78 #3341A7 #4F5DC9

Accessibility & contrast

On white

11.96
#252F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#252F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F78
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F78#FFFFFF#000000##FFFFFF
##252F781.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252f78;
/* rgb */ color: rgb(37, 47, 120);
/* oklch */ color: oklch(34.4% 0.124 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a0',
    500: '#252f78',
    950: '#000000',
  },
}
SCSS
$custom: #252f78;
$custom-light: #6b67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#252f78",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 232.771,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34412,
    "c": 0.12416,
    "h": 272.2
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#252F78
secondary
#AA9F4E
accent
#CB4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #252F78

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

Preview Lab → · Contrast checker → · Palette generator →

#252F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva