#252E77#252E77

#252E77 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.124 H 272.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#252E77
RGBrgb(37, 46, 119)
HSLhsl(233, 53%, 31%)
HSVhsv(233, 69%, 47%)
CMYKcmyk(68.9%, 61.3%, 0%, 53.3%)
CIE-LABlab(22.58, 21.91, -43.03)
CIE-LCHlch(22.58, 48.29, 296.98°)
OKLaboklab(34.12% 0.0057 -0.1239)
OKLCHoklch(34.12% 0.124 272.6)
XYZxyz(5.0686, 3.6788, 17.8921)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E77 #776E25
analogous
#255777 #252E77 #452577
triadic
#252E77 #77252E #2E7725
tetradic
#252E77 #772557 #776E25 #257745
square
#252E77 #772557 #776E25 #257745
split-complementary
#252E77 #774525 #577725
monochromatic
#080A1A #161C48 #252E77 #3440A6 #4E5CC8

Accessibility & contrast

On white

12.10
#252E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E77
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E77#FFFFFF#000000##FFFFFF
##252E771.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252e77;
/* rgb */ color: rgb(37, 46, 119);
/* oklch */ color: oklch(34.1% 0.124 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a669f',
    500: '#252e77',
    950: '#000000',
  },
}
SCSS
$custom: #252e77;
$custom-light: #6a669f;
$custom-dark: #000000;
JSON
{
  "hex": "#252e77",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 233.415,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3412,
    "c": 0.12405,
    "h": 272.6
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#252E77
secondary
#A99F4E
accent
#CC4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #252E77

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

Preview Lab → · Contrast checker → · Palette generator →

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